Docs.rs
cached-1.1.0
Platform
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
cached 1.1.0
Generic cache implementations and simplified function memoization
Crate
Source
Builds
Feature flags
Documentation
Hide files
..
cached_convert_without_key.rs
cached_convert_without_key.stderr
cached_create_without_ty.rs
cached_create_without_ty.stderr
cached_expires_create_exclusive.rs
cached_expires_create_exclusive.stderr
cached_expires_non_expires_type.rs
cached_expires_non_expires_type.stderr
cached_expires_refresh_exclusive.rs
cached_expires_refresh_exclusive.stderr
cached_expires_ttl_exclusive.rs
cached_expires_ttl_exclusive.stderr
cached_expires_type_exclusive.rs
cached_expires_type_exclusive.stderr
cached_expires_unbound_exclusive.rs
cached_expires_unbound_exclusive.stderr
cached_expires_unsync_reads_exclusive.rs
cached_expires_unsync_reads_exclusive.stderr
cached_expires_with_cached_flag_exclusive.rs
cached_expires_with_cached_flag_exclusive.stderr
cached_key_without_convert.rs
cached_key_without_convert.stderr
cached_result_complex_return.rs
cached_result_complex_return.stderr
cached_result_fallback_sync_writes.rs
cached_result_fallback_sync_writes.stderr
cached_result_no_inner_type.rs
cached_result_no_inner_type.stderr
cached_result_no_return.rs
cached_result_no_return.stderr
cached_result_option_exclusive.rs
cached_result_option_exclusive.stderr
cached_self_method.rs
cached_self_method.stderr
cached_store_types_exclusive.rs
cached_store_types_exclusive.stderr
cached_sync_lock_unknown.rs
cached_sync_lock_unknown.stderr
cached_sync_writes_buckets_zero.rs
cached_sync_writes_buckets_zero.stderr
cached_ty_without_create.rs
cached_ty_without_create.stderr
cached_with_cached_flag_no_return.rs
cached_with_cached_flag_no_return.stderr
cached_with_cached_flag_unqualified_return.rs
cached_with_cached_flag_unqualified_return.stderr
concurrent_cached_async_redis_no_ttl.rs
concurrent_cached_async_redis_no_ttl.stderr
concurrent_cached_complex_return.rs
concurrent_cached_complex_return.stderr
concurrent_cached_custom_create_required.rs
concurrent_cached_custom_create_required.stderr
concurrent_cached_custom_ty_required.rs
concurrent_cached_custom_ty_required.stderr
concurrent_cached_disk_create_conflict.rs
concurrent_cached_disk_create_conflict.stderr
concurrent_cached_disk_create_ignored_attrs.rs
concurrent_cached_disk_create_ignored_attrs.stderr
concurrent_cached_key_without_convert.rs
concurrent_cached_key_without_convert.stderr
concurrent_cached_no_return.rs
concurrent_cached_no_return.stderr
concurrent_cached_non_result_return.rs
concurrent_cached_non_result_return.stderr
concurrent_cached_option_return.rs
concurrent_cached_option_return.stderr
concurrent_cached_redis_create_conflict.rs
concurrent_cached_redis_create_conflict.stderr
concurrent_cached_redis_no_ttl.rs
concurrent_cached_redis_no_ttl.stderr
concurrent_cached_self_method.rs
concurrent_cached_self_method.stderr
concurrent_cached_time_attr_renamed.rs
concurrent_cached_time_attr_renamed.stderr
concurrent_cached_time_refresh_attr_renamed.rs
concurrent_cached_time_refresh_attr_renamed.stderr
concurrent_cached_with_cached_flag_foreign.rs
concurrent_cached_with_cached_flag_foreign.stderr
once_by_key_rejected.rs
once_by_key_rejected.stderr
once_expires_non_expires_type.rs
once_expires_non_expires_type.stderr
once_expires_ttl_exclusive.rs
once_expires_ttl_exclusive.stderr
once_expires_with_cached_flag_exclusive.rs
once_expires_with_cached_flag_exclusive.stderr
once_result_no_return.rs
once_result_no_return.stderr
once_result_option_exclusive.rs
once_result_option_exclusive.stderr
once_self_method.rs
once_self_method.stderr
once_sync_writes_buckets_zero.rs
once_sync_writes_buckets_zero.stderr
once_time_attr_renamed.rs
once_time_attr_renamed.stderr
once_with_cached_flag_foreign.rs
once_with_cached_flag_foreign.stderr
result_fallback_unbound_cache.rs
result_fallback_unbound_cache.stderr
result_fallback_without_result.rs
result_fallback_without_result.stderr
time_attr_renamed.rs
time_attr_renamed.stderr
time_refresh_attr_renamed.rs
time_refresh_attr_renamed.stderr
unsync_reads_mutex_lock.rs
unsync_reads_mutex_lock.stderr
unsync_reads_sized_cache.rs
unsync_reads_sized_cache.stderr
unsync_reads_timed_cache.rs
unsync_reads_timed_cache.stderr
with_cached_flag_foreign_return.rs
with_cached_flag_foreign_return.stderr
with_cached_flag_return_like.rs
with_cached_flag_return_like.stderr
1
2
3
4
5
6
7
8
use
cached
::
macros
::
once
;
#
[
once
]
fn
my_fn
(
&
self
,
k
:
i32
)
->
i32
{
k
}
fn
main
(
)
{
}