skx / cgi--session--driver--redis Goto Github PK
View Code? Open in Web Editor NEWCGI::Session driver using redis for storage.
License: Other
CGI::Session driver using redis for storage.
License: Other
======================================== CGI::Session::Driver::redis ======================================== CGI::Session::Driver::redis is CGI::Session driver for redis. INSTALLATION To install this module type the following: perl Makefile.PL make make test make install DEPENDENCIES This module requires these other modules and libraries: CGI::Session Redis COPYRIGHT AND LICENCE Copyright (C) 2010-2014 Steve Kemp <[email protected]>. All rights reserved. This library is free software. You can modify and or distribute it under the same terms as Perl itself.
Trying to install this with cpanm fails.
Looking at the log shows it looks for File::ShareDir::Install but can't find it.
Installing File::ShareDir::Install before trying to install CGI::Session::Driver::redis fixes the issue.
Instead of storing all sessions in a separate set i'd suggest relying on result of redis command "keys session:*" which will give the same list of keys. That call is not supposed to be super fast or whatever, but at least won't lead to a situation when old sessions are never cleaned from session:members without special cleanup procedures. As an alternative approach i'd make writing to session:members conditional and configurable. Can one of those be added please?
One more thing. In current implementaion ->sadd adds key with prefix to the redis set while coderef passed to traverse will be expecting actual session id (without prefix), so that's a bug and traverse probably doesn't work.
Hi,
It looks like CGI::Session::Driver::redis isn't properly indexed, so it's not available to install from CPAN.
It's visible here for some reason:
http://search.cpan.org/~skx/CGI-Session-Driver-redis-0.5.1/
but not here:
https://metacpan.org/search?q=CGI%3A%3ASession%3A%3ADriver%3A%3Aredis&size=20
and it's not actually available to install using e.g. cpanm.
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.