mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -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 = get_redis_connection()
|
||||||
redis_client.set("cowbell", "1", ex=600)
|
redis_client.set("cowbell", "1", ex=600)
|
||||||
x = redis_client.get('cowbell')
|
x = redis_client.get('cowbell')
|
||||||
if x == '1':
|
if x is not None:
|
||||||
return "Redis: OK"
|
return "Redis: OK"
|
||||||
else:
|
else:
|
||||||
return "Redis: FAIL"
|
return "Redis: FAIL"
|
||||||
|
|
Loading…
Add table
Reference in a new issue