Api Sandbox KeyStore
class

KeyStore

public sealed class KeyStore

Allows storing files by hashed keys, rather than by actual filename. This is sometimes useful.

Methods

static KeyStore CreateGlobalCache()

Creates a keystore which is in a global cache position. The folder can be deleted at any time, and it's all fine and no-one cares.

Void Set(String key, Byte[] data)

Store a bunch of bytes

Byte[] Get(String key)

Get stored bytes, or return null

Boolean TryGet(String key, Byte[] data)

Get stored bytes, or return false

Boolean Exists(String key)

Check if a key exists

Void Remove(String key)

Remove a key

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.KeyStore