Module core.libraries.meska.providers.cache.memory

Metrics-Skill-Achievement Framework (MESKA) The memory provider.

Module Overview

Functions

alloc() Allocates the memory provider.
tpl.put(key, value) The insertion wrapper.
tpl.putQuery(key, query) The insertion wrapper for queries.
tpl.pull(key) The query wrapper.
tpl.delete(key) The deletion wrapper.
tpl.append(key, value) The append wrapper.
tpl.prepend(key, value) The prepend wrapper.
tpl.lastIndex() Gets the last index.
free(idx) Frees the memory provider.

Fields

load Loads the memory provider.
unload Unloads the memory provider.

Functions

alloc()
Allocates the memory provider.

Returns:

    number provider index.
tpl.put(key, value)
The insertion wrapper.

Parameters:

  • key string The key.
  • value The value.
tpl.putQuery(key, query)
The insertion wrapper for queries.

Parameters:

  • key string The query key.
  • query The query.
tpl.pull(key)
The query wrapper.

Parameters:

Returns:

    any The value.
tpl.delete(key)
The deletion wrapper.

Parameters:

tpl.append(key, value)
The append wrapper.

Parameters:

  • key string The key.
  • value The value.
tpl.prepend(key, value)
The prepend wrapper.

Parameters:

  • key string The key.
  • value The value.
tpl.lastIndex()
Gets the last index.

Returns:

    number The index.
free(idx)
Frees the memory provider.

Parameters:

  • idx number The provider index.

Fields

load
Loads the memory provider. Wrapper function for memory.alloc.
unload
Unloads the memory provider. Wrapper function for memory.free.