Storage

Backends

PostgreSQL

Redis

Memory

API

Implementing a custom storage backend consists in implementating the following interface:

Exceptions

Store custom data

Storage can be used to store arbitrary data.

data = {'subscribed': datetime.now()}
user_id = request.authenticated_userid

storage = request.registry.storage
storage.create(resource_name='__custom', parent_id='', obj=data)

See the Model class to manipulate collections of records.