|
TinyMUSH 3.3
TinyMUSH Server
|
LRU caching. More...
#include "config.h"#include "constants.h"#include "typedefs.h"#include "macros.h"#include "externs.h"#include "prototypes.h"#include <string.h>
Functions | |
| int | cachehash (void *keydata, int keylen, unsigned int type) |
| void | cache_repl (UDB_CACHE *cp, void *new, int len, unsigned int type, unsigned int flags) |
| int | cache_init (int width) |
| void | cache_reset (void) |
| void | list_cached_objs (dbref player) |
| void | list_cached_attrs (dbref player) |
| UDB_DATA | cache_get (UDB_DATA key, unsigned int type) |
| int | cache_put (UDB_DATA key, UDB_DATA data, unsigned int type) |
| UDB_CACHE * | get_free_entry (int atrsize) |
| int | cache_write (UDB_CACHE *cp) |
| int | cache_sync (void) |
| void | cache_del (UDB_DATA key, unsigned int type) |
Variables | |
| int | cwidth = CACHE_WIDTH |
| UDB_CHAIN * | sys_c |
| UDB_CHAIN * | freelist |
| int | cache_initted = 0 |
| int | cache_frozen = 0 |
| time_t | cs_ltime |
| int | cs_writes = 0 |
| int | cs_reads = 0 |
| int | cs_dbreads = 0 |
| int | cs_dbwrites = 0 |
| int | cs_dels = 0 |
| int | cs_checks = 0 |
| int | cs_rhits = 0 |
| int | cs_ahits = 0 |
| int | cs_whits = 0 |
| int | cs_fails = 0 |
| int | cs_syncs = 0 |
| int | cs_size = 0 |
LRU caching.
| int cs_ahits = 0 |
total reads filled active cache
| int cs_checks = 0 |
total checks
| int cs_dbreads = 0 |
total read-throughs
| int cs_dbwrites = 0 |
total write-throughs
| int cs_dels = 0 |
total deletes
| int cs_fails = 0 |
attempts to grab nonexistent
| time_t cs_ltime |
cache start time
| int cs_reads = 0 |
total reads
| int cs_rhits = 0 |
total reads filled from cache
| int cs_size = 0 |
total cache size
| int cs_syncs = 0 |
total cache syncs
| int cs_whits = 0 |
total writes to dirty cache
| int cs_writes = 0 |
total writes
| UDB_CHAIN* sys_c |
sys_c points to all cache lists