Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsCache.CustomCacheItem Class Reference

Custom cache item. More...

Inheritance diagram for OnlineMapsCache.CustomCacheItem:
OnlineMapsCache.CacheItem

Public Member Functions

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

Additional Inherited Members

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

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