kinto.core.storage.postgresql.Storage
kinto_redis.storage.Storage
kinto.core.storage.memory.Storage
Implementing a custom storage backend consists in implementating the following interface:
kinto.core.storage
kinto.core.storage.exceptions
Storage can be used to store arbitrary data.
data = {'subscribed': datetime.now()}
user_id = request.authenticated_userid
storage = request.registry.storage
storage.create(collection_id='__custom', parent_id='', record=data)
See the resource-model
class to manipulate collections of records.