Docs.rs
avantis-utils-0.3.0
avantis-utils 0.3.0
Docs.rs crate page
MIT
Links
Homepage
Repository
crates.io
Source
Owners
catflyflyfly
dev-avantis
Dependencies
anyhow ^1.0
normal
async-trait ^0.1.53
normal
bb8-redis ^0.11.0
normal
config ^0.13
normal
redis ^0.21.5
normal
redis_cluster_async ^0.7.0
normal
serde ^1.0
normal
serde_json ^1.0
normal
sqlx ^0.5
normal
strum ^0.24
normal
thiserror ^1.0
normal
tokio ^1.17.0
normal
tracing ^0.1.33
normal
once_cell ^1.0
dev
serial_test ^0.6
dev
Versions
38.89%
of the crate is documented
Go to latest version
Platform
i686-unknown-linux-gnu
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
☰
Connection
Trait Implementations
GetOrRefreshExt
In avantis_utils::redis
?
Type Definition
avantis_utils
::
redis
::
Connection
source
·
[
−
]
pub type Connection = PooledConnection<'static, RedisClusterConnectionManager>;
Trait Implementations
source
impl
GetOrRefreshExt
for
Connection
source
fn
get_or_refresh
<'a, 'life0, 'async_trait, V, F, Fut>(
self,
key: &'life0
str
,
data_loader: F,
expire_seconds:
usize
) ->
Pin
<
Box
<dyn
Future
<Output =
Result
<V>> +
Send
+ 'async_trait>>
where
V:
FromRedisValue
+
ToRedisArgs
+
Send
+
Sync
+ 'static,
F:
FnOnce
() -> Fut +
Send
+ 'static,
Fut:
Future
<Output =
Result
<V>> +
Send
,
'a: 'async_trait,
V: 'async_trait,
F: 'async_trait,
Fut: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,