Package: dazcache 0.1.0
dazcache: Persistent Disk Cache Shared Between Processes
A persistent, size-bounded cache that several 'R' processes on one machine can share, in the style of the 'Python' library 'diskcache'. Keys map to values that outlive the session, expire on a clock, carry tags for bulk invalidation, and are evicted when the cache grows past a limit. Metadata and small values live in a transactional 'libmdbx' database through the 'mdbx' package, and larger values are stored as content-addressed files. Functions can be memoised across sessions and processes, and the cache can be used through the 'cachem' interface.
Authors:
dazcache_0.1.0.tar.gz
dazcache_0.1.0.zip(r-4.7-any)dazcache_0.1.0.zip(r-4.6-any)dazcache_0.1.0.zip(r-4.5-any)
dazcache_0.1.0.tgz(r-4.6-any)dazcache_0.1.0.tgz(r-4.5-any)
dazcache_0.1.0.tar.gz(r-4.7-any)dazcache_0.1.0.tar.gz(r-4.6-any)
dazcache_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dazcache/json (API)
| # Install 'dazcache' in R: |
| install.packages('dazcache', repos = c('https://pedrobtz.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/pedrobtz/dazcache/issues
Pkgdown/docs site:https://pedrobtz.github.io
Last updated from:f5cd7be529. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 157 | ||
| source / vignettes | OK | 168 | ||
| linux-release | OK | 142 | ||
| macos-release | OK | 123 | ||
| macos-oldrel | OK | 144 | ||
| windows-devel | OK | 168 | ||
| windows-release | OK | 203 | ||
| windows-oldrel | OK | 193 | ||
| wasm-release | OK | 83 |
Exports:as_cachemcachecache_addcache_checkcache_clearcache_closecache_countcache_cullcache_decrcache_deletecache_dircache_entriescache_evictcache_expirecache_forgetcache_forget_allcache_getcache_hascache_incrcache_infocache_is_opencache_keycache_key_chrcache_key_hashcache_key_textcache_keyscache_memoisecache_memoise_keycache_mgetcache_msetcache_pathcache_popcache_setcache_statscache_touchcache_transactcache_volumecodeccodec_autocodec_filecodec_rawcodec_rdsis_cache_memoisedlocal_cachewith_cache
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Use a cache through the cachem interface | as_cachem |
| Open a cache | cache cache_close cache_dir cache_is_open local_cache with_cache |
| Check a cache, and repair it | cache_check |
| Keep a cache under its size limit | cache_clear cache_cull cache_evict |
| The catalogue of a cache | cache_entries cache_info cache_stats |
| Reclaim expired entries | cache_expire |
| Read from a cache | cache_get cache_has cache_mget |
| Atomic writes | cache_add cache_decr cache_incr cache_pop cache_touch |
| Keys | cache_key cache_key_chr cache_key_hash cache_key_text |
| List and count a cache's entries | cache_count cache_keys cache_volume |
| Memoise a function in a cache | cache_forget cache_forget_all cache_memoise cache_memoise_key is_cache_memoised |
| The file behind an entry | cache_path |
| Write to a cache | cache_delete cache_mset cache_set |
| Run several writes as one transaction | cache_transact |
| Base generics for a cache | as.list.dazcache_cache cache-generics length.dazcache_cache [[.dazcache_cache [[<-.dazcache_cache |
| Codecs | codec codec_auto codec_file codec_raw codec_rds |
| Conditions raised by dazcache | dazcache-conditions |
