0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-21 21:48:21 -05:00

⚙️ refactor: add clone trait to RedisCache struct (#180)(#178)

This commit is contained in:
neon_arch 2023-08-29 20:10:32 +03:00
parent 028463bb36
commit 1de52decd3

1
src/cache/cacher.rs vendored
View File

@ -17,6 +17,7 @@ use super::error::PoolError;
/// * `pool_size` - It stores the size of the connection pool (in other words the number of
/// connections that should be stored in the pool).
/// * `current_connection` - It stores the index of which connection is being used at the moment.
#[derive(Clone)]
pub struct RedisCache {
connection_pool: Vec<ConnectionManager>,
pool_size: u8,