Online Maps  v3
OnlineMapsCache.CustomCacheItem Class Reference

Custom cache item. More...

Inheritance diagram for OnlineMapsCache.CustomCacheItem:
OnlineMapsCache.CacheItem

Public Member Functions

 CustomCacheItem (string key, int size)
 Constructor. More...
 
 CustomCacheItem (string key, int size, long time)
 Constructor. More...
 
byte[] GetBytes (OnlineMapsCache cache)
 Returns value from item. More...
 
string GetFullPath (OnlineMapsCache cache)
 Returns the full path to the file. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from OnlineMapsCache.CacheItem
static CacheItem Create ()
 Creates a new item. More...
 
- Public Attributes inherited from OnlineMapsCache.CacheItem
int size
 Size of the item. More...
 
int hash
 Hash of the key. More...
 
string key
 Key of the item. More...
 
long time
 Creation time. More...
 

Detailed Description

Custom cache item.

Constructor & Destructor Documentation

◆ CustomCacheItem() [1/2]

OnlineMapsCache.CustomCacheItem.CustomCacheItem ( string  key,
int  size 
)

Constructor.

Parameters
keyKey
sizeSize of data

◆ CustomCacheItem() [2/2]

OnlineMapsCache.CustomCacheItem.CustomCacheItem ( string  key,
int  size,
long  time 
)

Constructor.

Parameters
keyKey
sizeSize of data
timeCreation time

Member Function Documentation

◆ GetBytes()

byte [] OnlineMapsCache.CustomCacheItem.GetBytes ( OnlineMapsCache  cache)

Returns value from item.

Parameters
cacheCache
Returns
Value or null

◆ GetFullPath()

string OnlineMapsCache.CustomCacheItem.GetFullPath ( OnlineMapsCache  cache)

Returns the full path to the file.

Parameters
cacheCache
Returns
Full path to the file