{"repo":"brainix/pottery","free":true,"listed":false,"github":"https://github.com/brainix/pottery","clone":"git clone https://github.com/brainix/pottery.git","description":"Redis for humans. 🌎🌍🌏","language":"Python","stars":1245,"topics":["python","redis","redis-client","dict","distributed","lock","cache","forhumans","library","no-sql"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"Pottery: Redis for Humans 🌎🌍🌏 Redis is awesome, but Redis commands are not always intuitive. Pottery is a Pythonic way to access Redis. If you know how to use Python dicts, then you already know how to use Pottery. Pottery is useful for accessing Redis more easily, and also for implementing microservice resilience patterns; and it has been battle tested in production at scale. Table of Contents - Dicts 📖 - Sets 🛍️ - Lists ⛓ - Counters 🧮 - Deques 🖇️ - Redlock 🔒 - synchronize() 👯‍♀️ - AIORedlock 🔒 - NextID 🔢 - redis cache() - CachedOrderedDict - Bloom filters 🌸 - HyperLogLogs 🪵 - ContextTimer ⏱️ Installation Usage First, set up your Redis client: Dicts 📖 RedisDict is a Redis-backed container compatible with Python&rsquo;s dict . Here is a small example using a RedisDict : Notice the first two keyword arguments to RedisDict() : The first is your Redis client. The second is the Redis key name for your dict. Other than that, you can use your RedisDict the same way that you use any other Python dict . Limitations: 1. Keys and values must be JSON serializable. Sets 🛍️ RedisSet is a Redis-backed container compatible with Python&rsquo;s set . Here is a brief demonstration: Notice the two keyword arguments to RedisSet() : The first is your Redis client. The second is the Redis key name for your set. Other than that, you can use your RedisSet the same way that you use any other Python set . Do more efficient membership testing for multiple elements using .contains many() ","default_branch":null,"files":null,"tree":[],"storefront":"/r/brainix","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/brainix/pottery/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}