| | |
| | | import logging |
| | | import queue |
| | | import time |
| | | from threading import Thread |
| | | |
| | | import redis |
| | | |
| | |
| | | |
| | | |
| | | if __name__ == "__main__": |
| | | RedisUtils.setex_async(0, "test", tool.get_expire(), "123123") |
| | | print("大小", RedisUtils.get_async_task_count()) |
| | | RedisUtils.incrby_async(0, "test_1", 1) |
| | | print("大小", RedisUtils.get_async_task_count()) |
| | | RedisUtils.delete_async(0, "test") |
| | | print("大小", RedisUtils.get_async_task_count()) |
| | | RedisUtils.run_loop() |
| | | redis = RedisManager(1).getRedis() |
| | | db = redis.connection_pool.connection_kwargs['db'] |
| | | print(db) |