mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
track recent activities using redis instead of db
This commit is contained in:
parent
958c8f226f
commit
6264a07c49
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ def testredis_get():
|
|||
redis_client = get_redis_connection()
|
||||
redis_client.set("cowbell", "1", ex=600)
|
||||
x = redis_client.get('cowbell')
|
||||
if x == '1':
|
||||
if x is not None:
|
||||
return "Redis: OK"
|
||||
else:
|
||||
return "Redis: FAIL"
|
||||
|
|
Loading…
Add table
Reference in a new issue