C# Class MapAround.Caching.SimpleSpatialDataCache

Simple in-memory cache.

Use this class when you need 1. to store objects that are the same for many layers 2. to reduce time needed to access the frequently requested data

Afficher le fichier Open project: gkrsu/maparound.core Class Usage Examples

Méthodes publiques

Méthode Description
Add ( string key, object obj ) : void

Adds an object to the cache.

Get ( string key ) : object

Gets an object from cache.

Insert ( string key, object obj ) : void

Inserts an object to the cache.

Remove ( string key ) : void

Removes an object from cache.

this ( string key ) : object

Gets an object from the cache by its key or places new object (replaces existing).

Method Details

Add() public méthode

Adds an object to the cache.
public Add ( string key, object obj ) : void
key string Key
obj object Object
Résultat void

Get() public méthode

Gets an object from cache.
public Get ( string key ) : object
key string Key
Résultat object

Insert() public méthode

Inserts an object to the cache.
public Insert ( string key, object obj ) : void
key string Key
obj object Object
Résultat void

Remove() public méthode

Removes an object from cache.
public Remove ( string key ) : void
key string Object key
Résultat void

this() public méthode

Gets an object from the cache by its key or places new object (replaces existing).
public this ( string key ) : object
key string Obect key
Résultat object