SharedCache
MemorySharedCacheStore
ISharedCacheStore in memory: nothing survives the process.
generated from the sources
Class in namespace
Nebula · Packages/com.1by3.nebula/Runtime/SharedCache/ISharedCacheStore.cspublic sealed class MemorySharedCacheStore : ISharedCacheStoreISharedCacheStore in memory: nothing survives the process. For tests and for runs that keep nothing (-nebula-shared-cache-mode memory).
Properties
Backend
public string Backend { get; }Methods
TryGet
public bool TryGet(string key, out byte[] bytes, out string checksum);Put
public bool Put(string key, byte[] bytes, string checksum);RemoveUnreadSince
public int RemoveUnreadSince(DateTime cutoffUtc);Clear
public int Clear();Count
public long Count();TotalBytes
public long TotalBytes();Dispose
public void Dispose();LocalSharedCacheClient
ISharedCacheClient over a store in this process: a folder under the project or the persistent data path, or the store an orchestrator in the same process hosts.
NebulaSharedCache
A cache that every worker of a mesh shares, for data that is expensive to compute and the same every time: baked terrain, path data, generated layouts.