Giter Site home page Giter Site logo

cgi--session--driver--redis's Introduction

                    ========================================
                       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.

cgi--session--driver--redis's People

Contributors

skx avatar

Watchers

 avatar  avatar  avatar

cgi--session--driver--redis's Issues

Missing File::ShareDir::Install in dependencies ?

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.

Old sessions never get cleaned from session:members.

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.

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.