Package coprs :: Module redis_session :: Class RedisSessionInterface
[hide private]
[frames] | no frames]

Class RedisSessionInterface

source code


Nested Classes [hide private]
  session_class

Inherited from flask.sessions.SessionInterface: null_session_class

Instance Methods [hide private]
 
__init__(self, redis=None, prefix='session:')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
generate_sid(self) source code
 
get_redis_expiration_time(self, app, session) source code
 
open_session(self, app, request)
This method has to be implemented and must either return `None` in case the loading failed because of a configuration error or an instance of a session object which implements a dictionary like interface + the methods and attributes on :class:`SessionMixin`.
source code
 
save_session(self, app, session, response)
This is called for actual sessions returned by :meth:`open_session` at the end of the request.
source code

Inherited from flask.sessions.SessionInterface: get_cookie_domain, get_cookie_httponly, get_cookie_path, get_cookie_secure, get_expiration_time, is_null_session, make_null_session

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  serializer
Create portable serialized representations of Python objects.

Inherited from flask.sessions.SessionInterface: pickle_based

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, redis=None, prefix='session:')
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

open_session(self, app, request)

source code 

This method has to be implemented and must either return `None` in case the loading failed because of a configuration error or an instance of a session object which implements a dictionary like interface + the methods and attributes on :class:`SessionMixin`.

Overrides: flask.sessions.SessionInterface.open_session
(inherited documentation)

save_session(self, app, session, response)

source code 

This is called for actual sessions returned by :meth:`open_session` at the end of the request. This is still called during a request context so if you absolutely need access to the request you can do that.

Overrides: flask.sessions.SessionInterface.save_session
(inherited documentation)

Class Variable Details [hide private]

serializer

Create portable serialized representations of Python objects.

See module cPickle for a (much) faster implementation.
See module copy_reg for a mechanism for registering custom picklers.
See module pickletools source for extensive comments.

Classes:

    Pickler
    Unpickler

Functions:

    dump(object, file)
    dumps(object) -> string
    load(file) -> object
    loads(string) -> object

Misc variables:

    __version__
    format_version
    compatible_formats

Value:
pickle