/ring

Python cache interface with clean API and built-in memcache & redis + asyncio support.

Primary LanguagePythonOtherNOASSERTION

Ring

Join the chat at https://gitter.im/ring-cache/community

image

image

Let's concentrate on code, not on storages.

Ring shows a way to control cache in point of view of code - not about storages. Ring's decorator is convenient but also keeps fluency for general scenarios.

asyncio support!

Take advantage of perfectly explicit and fully automated cache interface. Ring decorators convert your functions to cached version of them, with extra control methods.

Documentation

Full documentation with examples and references: http://ring-cache.readthedocs.io/

  • Function/method support.
  • asyncio support.
  • Django support.
  • Bulk access support.

Function cache

It is a normal smart cache flow.

But ring is different when you want to explicitly control it.

Method cache

Installation

PyPI is the recommended way.

shell

$ pip install ring

To browse versions and tarballs, visit:

https://pypi.python.org/pypi/ring/

To use memcached or redis, don't forget to install related libraries. For example: python-memcached, python3-memcached, pylibmc, redis-py, Django etc

It may require to install and run related services on your system too. Look for memcached and redis for your system.

Contributors

See contributors list on:

https://github.com/youknowone/ring/graphs/contributors