Turnstone Operating System
|
cache interface More...
Classes | |
struct | cache_config_t |
Macros | |
#define | ___CACHE_H 0 |
#define | cache_put_by_count(c, k, i) cache_put(c, k, i, 1) |
#define | cache_put_item_as_key(c, i, s) cache_put(c, i, i, s) |
Typedefs | |
typedef enum cache_policy_t | cache_policy_t |
typedef boolean_t(* | cache_item_key_destroyer_f) (const void *key, const void *item) |
typedef struct cache_config_t | cache_config_t |
typedef struct cache_t | cache_t |
Enumerations | |
enum | cache_policy_t { CACHE_POLICY_COUNT , CACHE_POLICY_SIZE } |
Functions | |
cache_t * | cache_new (cache_config_t *config) |
boolean_t | cache_destroy (cache_t *cache) |
boolean_t | cache_put (cache_t *cache, const void *key, const void *item, uint64_t size) |
const void * | cache_get (cache_t *cache, const void *key) |
cache interface
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.