wu-wu / dancer-session-redis Goto Github PK
View Code? Open in Web Editor NEWRedis backend for Dancer Session Engine
Home Page: https://metacpan.org/release/Dancer-Session-Redis
Redis backend for Dancer Session Engine
Home Page: https://metacpan.org/release/Dancer-Session-Redis
Hi,
I'm testing Dancer::Session::Redis instead of my Dancer::Session::Memcached and i have this strange error :
[16860] error @0.059240> [hit #1]request to GET /dashboard/threshold/set/5/6/4/10 crashed:
Storable binary image v40.79 more recent than I am (v2.9)
at /usr/local/lib/perl/5.10.1/Storable.pm line 417, line 10,
at /usr/local/share/perl/5.10.1/Dancer/Session/Redis.pm line 67.
in /usr/local/share/perl/5.10.1/Dancer/Handler.pm l. 98
The strange thing it's i'm using Redis only for sessions (MySQL for database) and this error came when I quick_update something :
database->quick_update('thresholds.seksi_' . session->{cuid}, { id_srv => param('id_srv'), id_cntr => param('id_cntr') }, { operator => param('operator'), threshold => param('threshold') });
In the quick_update i'm using redis just for selecting an ID : session->{cuid}
With Dancer::Session::Memcached no problem, with Redis : http 500...
Best regards !
Max.
Dancer 1.9999_02,
http://www.cpantesters.org/cpan/report/c1348f1e-4f6f-11e2-bb5b-789e4e4ed0c9
PERL_DL_NONLAZY=1 /opt/perl/threads/5.16.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'use Dancer::Session::Redis;'
# at t/00_load.t line 12.
# Tried to use 'Dancer::Session::Redis'.
# Error: Can't locate object method "class_from_setting" via package "Dancer::ModuleLoader" at /opt/perl/threads/5.16.2/lib/site_perl/5.16.2/Dancer/Engine.pm line 44.
# Compilation failed in require at /opt/perl/threads/5.16.2/lib/site_perl/5.16.2/Dancer/Session/Abstract.pm line 8.
# BEGIN failed--compilation aborted at /opt/perl/threads/5.16.2/lib/site_perl/5.16.2/Dancer/Session/Abstract.pm line 8.
# Compilation failed in require at /opt/perl/threads/5.16.2/lib/5.16.2/parent.pm line 20.
# BEGIN failed--compilation aborted at /home/tf/.cpan/build/Dancer-Session-Redis-0.1.9-Yx3Han/blib/lib/Dancer/Session/Redis.pm line 6.
# Compilation failed in require at (eval 4) line 2.
# BEGIN failed--compilation aborted at (eval 4) line 2.
# Looks like you failed 1 test of 1.
t/00_load.t ...
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
Can't locate object method "class_from_setting" via package "Dancer::ModuleLoader" at /opt/perl/threads/5.16.2/lib/site_perl/5.16.2/Dancer/Engine.pm line 44.
Compilation failed in require at t/01_basic.t line 4.
BEGIN failed--compilation aborted at t/01_basic.t line 4.
t/01_basic.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/02_pod.t .... ok
such case: after user sign in, set sessions: username
/has_signed_in
.
When after user logout, I want remove has_signed_in
tag in session, but keep username
in session and do not destroy session.
It seems this module does not support function that delete partial session(s).
Any help or suggestion? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.