Repository Details
Shared by
HelloGitHub Rating
0 ratings
以 Python 的方式操作 Redis 的库
Past 7 days Received 0 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周二 | 1,243 | — |
| 周三 | 1,243 | 0 |
| 周四 | 1,244 | +1 |
| 周五 | 1,243 | -1 |
| 周六 | 1,243 | 0 |
| 周日 | 1,243 | 0 |
| 周一 | 1,243 | 0 |
1.2k
Stars
No
Chinese
Python
Language
Yes
Active
5
Contributors
24
Issues
No
Organization
None
Latest
73
Forks
Apache-2.0
License
以 Python 的方式操作 Redis 的库。忘记那些 Redis 命令吧,只要你知道如何使用 Python 字典,那么你就会用这个库操作 Redis
```python
>>> from pottery import RedisList
>>> tel = RedisDict({'jack': 4098, 'sape': 4139}, redis=redis, key='tel')
>>> tel['guido'] = 4127
>>> tel
RedisDict{'jack': 4098, 'sape': 4139, 'guido': 4127}
>>> tel['jack']
4098
>>> squares = RedisList([1, 4, 9, 16, 25], redis=redis, key='squares')
>>> squares
RedisList[1, 4, 9, 16, 25]
>>> squares[0]
1
```
Comments
Rating:
No comments yet