Skip to main content

A cache-based python ORM.

Project description

A cache-based python ORM -- supports Redis, Memcached.

Build Status codecov PyPI PyPI - License PyPI - Python Version

CacheBackend

  • BaseBackend
  • SimpleBackend
  • RedisBackend
  • MemcachedBackend

Methods

  • set(key, value)
  • get(key)
  • delete(key)
  • set_many(mapping)
  • get_many(*keys)
  • delete_many(*keys)
  • has(key)

Serializer

  • json
  • msgpack
  • pickle
  • protobuf

Registry

All serializers are registered to a registry singleton. Provide json, msgpack, pickle three preset serializers.

You can register your own serializer, such as a Protobuf serializer that registers a Person message.

registry.register("protobuf.person", ProtobufSerializer(person_pb2.Person))

ModelBase

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cacheorm-0.0.1.tar.gz (6.0 kB view hashes)

Uploaded Source

Built Distribution

cacheorm-0.0.1-py2.py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page