| Turnstone Operating System
    | 
tosdb cache interface implementation More...
#include <tosdb/tosdb_cache.h>#include <tosdb/tosdb_internal.h>#include <cache.h>#include <logging.h>#include <xxhash.h>| Classes | |
| struct | tosdb_cache_t | 
| tosdb cache structure  More... | |
| Functions | |
| MODULE ("turnstone.kernel.db") | |
| uint64_t | tosdb_cache_key_generator (const void *item) | 
| tosdb cache key generator | |
| int8_t | tosdb_cache_key_comparator (const void *item1, const void *item2) | 
| tosdb cache key comparator | |
| boolean_t | tosdb_cache_item_key_destroyer (const void *key, const void *item) | 
| tosdb cache item key destroyer | |
| tosdb_cache_t * | tosdb_cache_new (tosdb_cache_config_t *config) | 
| creates new tosdb cache | |
| boolean_t | tosdb_cache_close (tosdb_cache_t *cache) | 
| deletes tosdb cache | |
| const tosdb_cache_key_t * | tosdb_cache_get (tosdb_cache_t *cache, tosdb_cache_key_t *key) | 
| gets tosdb cache item | |
| boolean_t | tosdb_cache_put (tosdb_cache_t *cache, tosdb_cache_key_t *key) | 
| puts tosdb cache item | |
tosdb cache interface implementation
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
| MODULE | ( | "turnstone.kernel.db" | ) | 
module name
| boolean_t tosdb_cache_close | ( | tosdb_cache_t * | cache | ) | 
deletes tosdb cache
| cache | tosdb cache | 
| const tosdb_cache_key_t * tosdb_cache_get | ( | tosdb_cache_t * | cache, | 
| tosdb_cache_key_t * | key ) | 
gets tosdb cache item
| cache | tosdb cache | 
| key | cache key | 
| boolean_t tosdb_cache_item_key_destroyer | ( | const void * | key, | 
| const void * | item ) | 
tosdb cache item key destroyer
| key | key of item | 
| item | item to destroy | 
| int8_t tosdb_cache_key_comparator | ( | const void * | item1, | 
| const void * | item2 ) | 
tosdb cache key comparator
| item1 | item1 to compare | 
| item2 | item2 to compare | 
| uint64_t tosdb_cache_key_generator | ( | const void * | item | ) | 
tosdb cache key generator
| item | item to create key | 
| tosdb_cache_t * tosdb_cache_new | ( | tosdb_cache_config_t * | config | ) | 
creates new tosdb cache
| config | cache config | 
| boolean_t tosdb_cache_put | ( | tosdb_cache_t * | cache, | 
| tosdb_cache_key_t * | key ) | 
puts tosdb cache item
| cache | tosdb cache | 
| key | cache key |