-
Notifications
You must be signed in to change notification settings - Fork 1
API.Service.Cache
JuDelCo edited this page May 20, 2021
·
2 revisions
Namespace: Ju.Services
This service provides a centralized storage of objects. Can be used to store and retrieve easily objects using string identifiers.
You can also store list of objects of the same type and retrieve all the objects at once.
void Set<T>(T obj, bool overwrite = true);
void Set<T>(T obj, string id, bool overwrite = true);
T Get<T>();
T Get<T>(string id);
void Unset<T>();
void Unset<T>(string id);
IEnumerable<Type> GetTypes();
void ListAdd<T>(T obj);
void ListAdd<T>(T obj, string id);
List<T> ListGet<T>();
List<T> ListGet<T>(string id);
void ListRemove<T>(T obj);
void ListRemove<T>(T obj, string id);
IEnumerable<Type> ListGetTypes();
CacheAddEvent(Type type, object obj);
CacheRemoveEvent(Type type, object obj);
Get all the object types stored in the service.
Get all the list object types stored in the service.
Return to [Home]
- Home
- Install
- Manual
-
Core API
- Services:
- Util:
-
Unity API
- Services:
- Integrations: