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

Datei anzeigen Open project: gkrsu/maparound.core Class Usage Examples

Public Methods

Method 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 method

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

Get() public method

Gets an object from cache.
public Get ( string key ) : object
key string Key
return object

Insert() public method

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

Remove() public method

Removes an object from cache.
public Remove ( string key ) : void
key string Object key
return void

this() public method

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