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

Custom cache atlas. More...

Inheritance diagram for OnlineMapsCache.CustomCacheAtlas:
OnlineMapsCache.CacheAtlas< CustomCacheItem >

Public Member Functions

void Add (OnlineMapsCache cache, string key, byte[] bytes)
 Adds a new item to the atlas.
 
byte[] GetItem (OnlineMapsCache cache, string key)
 Returns value from custom cache by key.
 
- Public Member Functions inherited from OnlineMapsCache.CacheAtlas< CustomCacheItem >
 CacheAtlas ()
 Constructor.
 
bool Contains (string filename)
 Checks whether the atlas contains the specified file.
 
CreateItem (string filename, int size, long time)
 Creates a new item.
 
void DeleteOldItems (OnlineMapsCache cache)
 Deletes old items.
 
void Load (OnlineMapsCache cache)
 Loads the atlas from the cache.
 
void Save (OnlineMapsCache cache)
 Saves the atlas.
 

Static Public Attributes

const string AtlasName = "customcacheatlas.dat"
 Name of the atlas file.
 

Properties

override string atlasName [get]
 Returns the name of the atlas file.
 
- Properties inherited from OnlineMapsCache.CacheAtlas< CustomCacheItem >
string atlasName [get]
 Name of the atlas.
 
int size [get, protected set]
 Size of the atlas.
 

Additional Inherited Members

- Protected Attributes inherited from OnlineMapsCache.CacheAtlas< CustomCacheItem >
int capacity
 Capacity of the atlas.
 
int count
 Count of items in the atlas.
 
T[] items
 Items of the atlas.
 
- Static Protected Attributes inherited from OnlineMapsCache.CacheAtlas< CustomCacheItem >
const short ATLAS_VERSION
 Version of the atlas.
 

Detailed Description

Custom cache atlas.

Member Function Documentation

◆ Add()

void OnlineMapsCache.CustomCacheAtlas.Add ( OnlineMapsCache cache,
string key,
byte[] bytes )

Adds a new item to the atlas.

Parameters
cacheCache
keyKey
bytesBytes

◆ GetItem()

byte[] OnlineMapsCache.CustomCacheAtlas.GetItem ( OnlineMapsCache cache,
string key )

Returns value from custom cache by key.

Parameters
cacheCache
keyKey
Returns
Value or null