|
Turnstone Operating System
|
tosdb cache interface More...
Classes | |
| struct | tosdb_cache_key_t |
| tosdb cache key More... | |
| struct | tosdb_cached_bloomfilter_t |
| tosdb boomfilter cache item More... | |
| struct | tosdb_cached_index_data_t |
| tosdb index data cache item it is for primary/unique index More... | |
| struct | tosdb_cached_secondary_index_data_t |
| tosdb secondary index data cache item More... | |
| struct | tosdb_cached_valuelog_t |
| tosdb valuelog cache item More... | |
Macros | |
| #define | ___TOSDB_TOSDB_CACHE_H 0 |
Typedefs | |
| typedef enum tosdb_cache_item_type_t | tosdb_cache_item_type_t |
| tosdb cache item type | |
| typedef struct tosdb_memtable_index_item_t | tosdb_memtable_index_item_t |
| opaque tosdb memtable index item | |
| typedef struct tosdb_memtable_secondary_index_item_t | tosdb_memtable_secondary_index_item_t |
| opaque tosdb memtable secondary index item | |
| typedef struct tosdb_cache_key_t | tosdb_cache_key_t |
| tosdb cache key | |
| typedef struct tosdb_cached_bloomfilter_t | tosdb_cached_bloomfilter_t |
| tosdb boomfilter cache item | |
| typedef struct tosdb_cached_index_data_t | tosdb_cached_index_data_t |
| tosdb index data cache item | |
| typedef struct tosdb_cached_secondary_index_data_t | tosdb_cached_secondary_index_data_t |
| tosdb secondary index data cache item | |
| typedef struct tosdb_cached_valuelog_t | tosdb_cached_valuelog_t |
| tosdb valuelog cache item | |
| typedef struct tosdb_cache_t | tosdb_cache_t |
| tosdb cache | |
Enumerations | |
| enum | tosdb_cache_item_type_t { TOSDB_CACHE_ITEM_TYPE_BLOOMFILTER , TOSDB_CACHE_ITEM_TYPE_INDEX_DATA , TOSDB_CACHE_ITEM_TYPE_SECONDARY_INDEX_DATA , TOSDB_CACHE_ITEM_TYPE_VALUELOG } |
| tosdb cache item type More... | |
Functions | |
| 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
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
| #define ___TOSDB_TOSDB_CACHE_H 0 |
macro for preventing second time include
| typedef struct tosdb_cache_t tosdb_cache_t |
tosdb cache
opaque tosdb cache
| 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 |
| 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 |