Spaces:
Runtime error
Runtime error
neon_arch
commited on
Commit
•
1de52de
1
Parent(s):
028463b
⚙️ refactor: add clone trait to `RedisCache` struct (#180)(#178)
Browse files- src/cache/cacher.rs +1 -0
src/cache/cacher.rs
CHANGED
@@ -17,6 +17,7 @@ use super::error::PoolError;
|
|
17 |
/// * `pool_size` - It stores the size of the connection pool (in other words the number of
|
18 |
/// connections that should be stored in the pool).
|
19 |
/// * `current_connection` - It stores the index of which connection is being used at the moment.
|
|
|
20 |
pub struct RedisCache {
|
21 |
connection_pool: Vec<ConnectionManager>,
|
22 |
pool_size: u8,
|
|
|
17 |
/// * `pool_size` - It stores the size of the connection pool (in other words the number of
|
18 |
/// connections that should be stored in the pool).
|
19 |
/// * `current_connection` - It stores the index of which connection is being used at the moment.
|
20 |
+
#[derive(Clone)]
|
21 |
pub struct RedisCache {
|
22 |
connection_pool: Vec<ConnectionManager>,
|
23 |
pool_size: u8,
|