Giter Site home page Giter Site logo

dancer-session-redis's People

Contributors

c0decafe avatar wu-wu avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jahiy mattsizzle

dancer-session-redis's Issues

crashed: Storable binary image v40.79 more recent than I am (v2.9)

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.

does not pass tests with dancer2

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

how to delete partial session

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.