TinyMUSH 3.3
TinyMUSH Server
Loading...
Searching...
No Matches
Functions | Variables
udb_ocache.c File Reference

LRU caching. More...

#include "config.h"
#include "constants.h"
#include "typedefs.h"
#include "macros.h"
#include "externs.h"
#include "prototypes.h"
#include <string.h>
Include dependency graph for udb_ocache.c:

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_CACHEget_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_CHAINsys_c
 
UDB_CHAINfreelist
 
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
 

Detailed Description

LRU caching.

Author
TinyMUSH development team (https://github.com/TinyMUSH)
Version
3.3
Date
2021-01-04

Variable Documentation

◆ cs_ahits

int cs_ahits = 0

total reads filled active cache

◆ cs_checks

int cs_checks = 0

total checks

◆ cs_dbreads

int cs_dbreads = 0

total read-throughs

◆ cs_dbwrites

int cs_dbwrites = 0

total write-throughs

◆ cs_dels

int cs_dels = 0

total deletes

◆ cs_fails

int cs_fails = 0

attempts to grab nonexistent

◆ cs_ltime

time_t cs_ltime

cache start time

◆ cs_reads

int cs_reads = 0

total reads

◆ cs_rhits

int cs_rhits = 0

total reads filled from cache

◆ cs_size

int cs_size = 0

total cache size

◆ cs_syncs

int cs_syncs = 0

total cache syncs

◆ cs_whits

int cs_whits = 0

total writes to dirty cache

◆ cs_writes

int cs_writes = 0

total writes

◆ sys_c

UDB_CHAIN* sys_c

sys_c points to all cache lists