Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:222:    function(string, RequestID:string|int) EntryType;       mapping(string:EntryType) cache = ([]);       int current_size;    int max_size;    int max_file_size;       int hits, misses;    +  mapping get_cache_stats() +  { +  return ([ "current_size" : current_size, +  "max_size" : max_size, +  "max_file_size" : max_file_size, +  "entries" : sizeof(cache), +  "hits" : hits, +  "misses" : misses ]); +  } +     void flush()    {   #ifndef RAM_CACHE_NO_RELOAD_FLUSH    current_size = 0;    cache = ([]);   #endif    }       // Heuristic to calculate the entry size. Besides the data itself,    // we add the size of the key. Even though it's a shared string we