C# 클래스 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

파일 보기 프로젝트 열기: gkrsu/maparound.core 1 사용 예제들

공개 메소드들

메소드 설명
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).

메소드 상세

Add() 공개 메소드

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

Get() 공개 메소드

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

Insert() 공개 메소드

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

Remove() 공개 메소드

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

this() 공개 메소드

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