0febb5045a
This crate contains a file-backed, rotating cache. The cache should be safe to be accessed from multiple processes at once. The cache stores the value at the provided path. If `keep_old` is >0, the cache will keep up to `keep_old` versions around which can be queried via the `get_last` method. The value and its history are stored in the same file, each generation represented by a single line of JSON. Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
18 lines
558 B
TOML
18 lines
558 B
TOML
[package]
|
|
name = "proxmox-shared-cache"
|
|
version = "0.1.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
exclude.workspace = true
|
|
description = "A cache that can be used from multiple processes simultaneously"
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
proxmox-sys = { workspace = true, features = ["timer"] }
|
|
proxmox-schema = { workspace = true, features = ["api-types"]}
|
|
serde_json = { workspace = true, features = ["raw_value"] }
|
|
serde = { workspace = true, features = ["derive"]}
|
|
nix.workspace = true
|