Class: UWA.Storage.Adapter.Flash

UWA/Storage/Adapter/Flash. UWA.Storage.Adapter.Flash

new UWA.Storage.Adapter.Flash()

Extends

  • UWA.Storage.Adapter.Abstract

Index

Members

Methods

Members

type :String

The type of storage engine used by Adapter.

Type
  • String

limit :Number

The maximum limit of the storage engine.

Type
  • Number

Methods

connect(database)

Initialize database connexion.

Parameters
Name Type Description
database String

The database name

isAvailable() → {Boolean}

Check if adapter is available.

Returns

true if available and writable else false.

Type
Boolean

get(key) → {*}

Provide a simple interface for reading key value.

Parameters
Name Type Description
key String

The key name

Returns

Key value.

Type
*

set(key, value) → {String}

Provide a simple interface for storing key value.

Parameters
Name Type Description
key String

The key name

value String

The serialized key value

Returns

Key value.

Type
String

rem(key) → {String}

Provide a simple interface for removing values.

Parameters
Name Type Description
key String

The key name

Returns

Previous key value.

Type
String