\r\n

51Degrees Device Detection C/C++  4.4

A device detection library that is used natively or by 51Degrees products

fiftyoneDegreesCache Struct Reference

Detailed Description

Cache structure to store the root of the red black tree and a list of allocated cache nodes.

This also contains cache metrics and pointers to methods used when being used as a loading cache.

Collaboration diagram for fiftyoneDegreesCache:

[legend]

Data Fields

fiftyoneDegreesCacheShard *  shards
Array of shards / concurrency.
fiftyoneDegreesCacheNode *  nodes
Array of nodes / capacity.
uint16_t  concurrency
Expected concurrency and number of shards.
int32_t  capacity
Capacity of the cache.
unsigned long  hits
The requests served from the cache.
unsigned long  misses
The requests NOT served from the cache.
fiftyoneDegreesCacheLoadMethod  load
Used by the cache to load an item into the cache.
fiftyoneDegreesCacheHashCodeMethod  hash
Used to hash a key pointer.
const void *  loaderState
Cache loader specific state.

The documentation for this struct was generated from the following file:
  • /home/runner/work/device-detection-cxx/device-detection-cxx/common/device-detection-cxx/src/common-cxx/cache.h
On This Page