Public Member Functions | Data Fields

RamCacheLRU Struct Reference

Inherits RamCache.

Collaboration diagram for RamCacheLRU:
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)
 Que (RamCacheLRUEntry, lru_link) lru
 DList (RamCacheLRUEntry, hash_link)*bucket
void resize_hashtable ()
RamCacheLRUEntryremove (RamCacheLRUEntry *e)
 RamCacheLRU ()

Data Fields

int64_t max_bytes
int64_t bytes
int64_t objects
uint16_t * seen
int nbuckets
int ibuckets
Volvol

Detailed Description

Definition at line 35 of file RamCacheLRU.cc.


Constructor & Destructor Documentation

RamCacheLRU::RamCacheLRU (  )  [inline]

Definition at line 58 of file RamCacheLRU.cc.


Member Function Documentation

RamCacheLRU::DList ( RamCacheLRUEntry  ,
hash_link   
)

Referenced by resize_hashtable().

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

Implements RamCache.

Definition at line 94 of file RamCacheLRU.cc.

References DDebug, max_bytes, resize_hashtable(), and vol.

int RamCacheLRU::put ( INK_MD5 key,
IOBufferData data,
uint32_t  len,
bool  copy = false,
uint32_t  auxkey1 = 0,
uint32_t  auxkey2 = 0 
) [virtual]
RamCacheLRU::Que ( RamCacheLRUEntry  ,
lru_link   
)
RamCacheLRUEntry * RamCacheLRU::remove ( RamCacheLRUEntry e  ) 
void RamCacheLRU::resize_hashtable (  ) 

Field Documentation

Definition at line 37 of file RamCacheLRU.cc.

Referenced by put(), and remove().

Definition at line 52 of file RamCacheLRU.cc.

Referenced by put(), and resize_hashtable().

Definition at line 36 of file RamCacheLRU.cc.

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

Definition at line 51 of file RamCacheLRU.cc.

Referenced by fixup(), get(), put(), remove(), and resize_hashtable().

Definition at line 38 of file RamCacheLRU.cc.

Referenced by put(), and remove().

uint16_t* RamCacheLRU::seen

Definition at line 48 of file RamCacheLRU.cc.

Referenced by put(), and resize_hashtable().

Definition at line 53 of file RamCacheLRU.cc.

Referenced by init().


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