Structure of an item in the recommendation engine. Parameter data contains the user-set value in the engine.
CreateRegommendItem returns a newly created RegommendItem. Parameter key is the item's key. Parameter data is the item's value.
Data returns the value of this item.
Key returns the key of this item.
Structure of a table with items in the engine.
Table returns the existing engine table with given name or creates a new one if the table does not exist yet.
Add adds a key/value pair to the engine. Parameter key is the item's engine-key. Parameter data is the item's value.
Count returns how many items are currently stored in the engine.
Delete an item from the engine.
Test whether an item exists in the engine. Unlike the Value method Exists neither tries to fetch data via the loadData callback nor does it keep the item alive in the engine.
Delete all items from engine.
Configures a callback, which will be called every time an item is about to be removed from the engine.
Configures a callback, which will be called every time a new item is added to the engine.
Configures a data-loader callback, which will be called when trying to use access a non-existing key.
Sets the logger to be used by this engine table.
Value gets an item from the engine and mark it to be kept alive.