Storage¶
The class of storage is the one implementing MutableMapping interface. There are some storage classes provided with this middleware:
InMemoryStorage¶
This storage enables keeping cookies inside the memory, to provide ultra fast read and write cookies performance.
SQLiteStorage¶
This storage enables keeping cookies in SQLite, which supports already by Python.
The following settings can be used to configure this storage:
MongoStorage¶
This storage enables keeping cookies in MongoDB.
The following settings can be used to configure this storage:
RedisStorage¶
This storage enables keeping cookies in Redis.
The following settings can be used to configure this storage:
COOKIES_REDIS_HOSTCOOKIES_REDIS_PORTCOOKIES_REDIS_DBCOOKIES_REDIS_PASSWORDCOOKIES_REDIS_SOCKET_TIMEOUTCOOKIES_REDIS_SOCKET_CONNECT_TIMEOUTCOOKIES_REDIS_SOCKET_KEEPALIVECOOKIES_REDIS_SOCKET_KEEPALIVE_OPTIONSCOOKIES_REDIS_CONNECTION_POOLCOOKIES_REDIS_UNIX_SOCKET_PATHCOOKIES_REDIS_ENCODINGCOOKIES_REDIS_ENCODING_ERRORSCOOKIES_REDIS_CHARSETCOOKIES_REDIS_ERRORSCOOKIES_REDIS_DECODE_RESPONSESCOOKIES_REDIS_RETRY_ON_TIMEOUTCOOKIES_REDIS_SSLCOOKIES_REDIS_SSL_KEYFILECOOKIES_REDIS_SSL_CERTFILECOOKIES_REDIS_SSL_CERT_REQSCOOKIES_REDIS_SSL_CA_CERTSCOOKIES_REDIS_MAX_CONNECTIONS