semicongine/storage

Types

StorageType = enum
  SystemStorage, UserStorage

Procs

proc list[T](storageType: StorageType; table = DEFAULT_KEY_VALUE_TABLE_NAME): seq[
    string]
proc load[T](storageType: StorageType; key: string; default: T;
             table = DEFAULT_KEY_VALUE_TABLE_NAME): T
proc purge(storageType: StorageType) {....raises: [OSError, IOError], tags: [
    WriteDirEffect, ReadIOEffect, ReadDirEffect, ReadEnvEffect], forbids: [].}
proc store[T](storageType: StorageType; key: string; value: T;
              table = DEFAULT_KEY_VALUE_TABLE_NAME)