redcache.connection Module

This module implements Redis connection management.

redcache.connection.get_current_connection()[source]

Returns the current Redis connection (i.e. the topmost on the connection stack).

redcache.connection.push_connection(redis)[source]

Pushes the given connection on the stack.

redcache.connection.pop_connection()[source]

Pops the topmost connection from the stack.

redcache.connection.use_connection(redis=None)[source]

Clears the stack and uses the given connection. Protects against mixed use of use_connection() and stacked connection contexts.

Previous topic

redcache.cache_manager Module

This Page