(p: AsyncRedisPool)
| 225 | } |
| 226 | |
| 227 | async fn set_async_redis_pool(p: AsyncRedisPool) { |
| 228 | let mut pool_w = ASYNC_REDIS_POOL.write().await; |
| 229 | *pool_w = Some(p); |
| 230 | } |
| 231 | |
| 232 | pub fn redis_key(s: String) -> String { |
| 233 | let prefix = REDIS_PREFIX.read().unwrap(); |