src/main/Space.h File Reference

Space class headers. More...

#include <list>
#include <vector>
#include <sstream>
#include <pthread.h>
#include "Value.h"
#include "Cache.h"
#include "User.h"
#include "LightString.h"
#include "config.h"
#include <tr1/unordered_map>

Go to the source code of this file.

Classes

struct  Stats
 Structure holding every sort of meta information of the Space object. More...
class  Space
 Class containing the logical namespace of the cache. More...
class  Space::HashTabElement
 Auxiliary class for keeping elements in the hash table, containing information about the cached value and iterator to LRUList. More...
class  Space::LRUListElement
 Auxiliary class for keeping elements in the LRUList, containing the key to hash table and expiry time of the cached value. More...

Defines

#define get16bits(d)   (*((const uint16_t *) (d)))
 Gets 16 bits from numeric.

Enumerations

enum  SpaceResult {
  RESULT_SUCCESS, RESULT_MISS, RESULT_EXISTS, RESULT_CAS_FAIL,
  RESULT_ERROR, RESULT_BAD_SIZE
}
 enumeration of possible library operation results

Functions

size_t HASH (const LightString key)
 Hash function for LightString.


Detailed Description

Space class headers.

Definition in file Space.h.


Function Documentation

size_t HASH ( const LightString  key  )  [inline]

Hash function for LightString.

Parameters:
key string to hash

Definition at line 135 of file Space.h.


Generated on Fri Jan 8 10:38:13 2010 for dreamcache by  doxygen 1.5.5