Class BlobCache
- Namespace
- Akavache
- Assembly
- Akavache.Core.dll
A class which represents a blobbed cache.
- Inheritance
-
Blob
Cache
Properties
ApplicationName
Gets or sets your application's name. Set this at startup, this defines where your data will be stored (usually at %AppData%[ApplicationName]).
Property Value
ForcedDateTimeKind
Gets or sets the DateTimeKind handling for BSON readers to be forced.
Property Value
Remarks
By default, Newtonsoft.DateTimeKind
, you can set this value.
InMemory
Gets or sets an IBlobCache that simply stores data in memory. Data stored in this cache will be lost when the application restarts.
Property Value
LocalMachine
Gets or sets the local machine cache. Store data here that is unrelated to the user account or shouldn't be uploaded to other machines (i.e. image cache data).
Property Value
Secure
Gets or sets an IBlobCache that is encrypted - store sensitive data in this cache such as login information.
Property Value
TaskpoolScheduler
Gets or sets the Scheduler used for task pools.
Property Value
- IScheduler
UserAccount
Gets or sets the user account cache. Store data here that is associated with the user; in large organizations, this data will be synced to all machines via NT Roaming Profiles.
Property Value
Methods
EnsureInitialized()
Makes sure that the system has been initialized.
Shutdown()
This method shuts down all of the blob caches. Make sure call it on app exit and await / Wait() on it.
Returns
- Task
A Task representing when all caches have finished shutting down.