Public Member Functions | Data Fields

RamCacheCLFUS Struct Reference

Inherits RamCache.

Collaboration diagram for RamCacheCLFUS:
Collaboration graph
[legend]

Public Member Functions

int get (INK_MD5 *key, Ptr< IOBufferData > *ret_data, uint32_t auxkey1=0, uint32_t auxkey2=0)
int put (INK_MD5 *key, IOBufferData *data, uint32_t len, bool copy=false, uint32_t auxkey1=0, uint32_t auxkey2=0)
int fixup (INK_MD5 *key, uint32_t old_auxkey1, uint32_t old_auxkey2, uint32_t new_auxkey1, uint32_t new_auxkey2)
void init (int64_t max_bytes, Vol *vol)
 DList (RamCacheCLFUSEntry, hash_link)*bucket
 Que (RamCacheCLFUSEntry, lru_link) lru[2]
void compress_entries (EThread *thread, int do_at_most=INT_MAX)
void resize_hashtable ()
void victimize (RamCacheCLFUSEntry *e)
void move_compressed (RamCacheCLFUSEntry *e)
RamCacheCLFUSEntrydestroy (RamCacheCLFUSEntry *e)
void requeue_victims (RamCacheCLFUS *c, Que(RamCacheCLFUSEntry, lru_link)&victims)
void tick ()
 RamCacheCLFUS ()

Data Fields

int64_t max_bytes
int64_t bytes
int64_t objects
Volvol
int64_t history
int ibuckets
int nbuckets
uint16_t * seen
int ncompressed
RamCacheCLFUSEntrycompressed

Detailed Description

Definition at line 69 of file RamCacheCLFUS.cc.


Constructor & Destructor Documentation

RamCacheCLFUS::RamCacheCLFUS (  )  [inline]

Definition at line 98 of file RamCacheCLFUS.cc.


Member Function Documentation

void RamCacheCLFUS::compress_entries ( EThread thread,
int  do_at_most = INT_MAX 
)
RamCacheCLFUSEntry * RamCacheCLFUS::destroy ( RamCacheCLFUSEntry e  ) 
RamCacheCLFUS::DList ( RamCacheCLFUSEntry  ,
hash_link   
)

Referenced by resize_hashtable().

int RamCacheCLFUS::fixup ( INK_MD5 key,
uint32_t  old_auxkey1,
uint32_t  old_auxkey2,
uint32_t  new_auxkey1,
uint32_t  new_auxkey2 
) [virtual]
int RamCacheCLFUS::get ( INK_MD5 key,
Ptr< IOBufferData > *  ret_data,
uint32_t  auxkey1 = 0,
uint32_t  auxkey2 = 0 
) [virtual]
void RamCacheCLFUS::init ( int64_t  max_bytes,
Vol vol 
) [virtual]
void RamCacheCLFUS::move_compressed ( RamCacheCLFUSEntry e  ) 

Definition at line 323 of file RamCacheCLFUS.cc.

References compressed, and ncompressed.

Referenced by destroy(), get(), and put().

int RamCacheCLFUS::put ( INK_MD5 key,
IOBufferData data,
uint32_t  len,
bool  copy = false,
uint32_t  auxkey1 = 0,
uint32_t  auxkey2 = 0 
) [virtual]
RamCacheCLFUS::Que ( RamCacheCLFUSEntry  ,
lru_link   
)

Referenced by put().

void RamCacheCLFUS::requeue_victims ( RamCacheCLFUS c,
Que(RamCacheCLFUSEntry, lru_link)&  victims 
)
void RamCacheCLFUS::resize_hashtable (  ) 
void RamCacheCLFUS::tick (  ) 
void RamCacheCLFUS::victimize ( RamCacheCLFUSEntry e  ) 

Field Documentation

Definition at line 71 of file RamCacheCLFUS.cc.

Referenced by compress_entries(), destroy(), get(), put(), and requeue_victims().

Definition at line 90 of file RamCacheCLFUS.cc.

Referenced by compress_entries(), move_compressed(), and put().

Definition at line 83 of file RamCacheCLFUS.cc.

Referenced by destroy(), put(), tick(), and victimize().

Definition at line 84 of file RamCacheCLFUS.cc.

Referenced by put(), and resize_hashtable().

Definition at line 70 of file RamCacheCLFUS.cc.

Referenced by fixup(), get(), init(), and put().

Definition at line 85 of file RamCacheCLFUS.cc.

Referenced by compress_entries(), destroy(), fixup(), get(), put(), resize_hashtable(), and tick().

Definition at line 89 of file RamCacheCLFUS.cc.

Referenced by compress_entries(), move_compressed(), and put().

Definition at line 72 of file RamCacheCLFUS.cc.

Referenced by compress_entries(), destroy(), put(), tick(), and victimize().

Definition at line 88 of file RamCacheCLFUS.cc.

Referenced by put(), and resize_hashtable().

Definition at line 82 of file RamCacheCLFUS.cc.

Referenced by compress_entries(), and init().


The documentation for this struct was generated from the following file: