Editor in-memory cache.

Methods

inline clear ():Void

Clears cache values.

inline get (key:String):Dynamic

Returns cached value.

Parameters:

key

Key.

Returns:

Value.

inline getCount ():Int

Returns amount of values in cache.

Returns:

Amount of values.

getQuery (q:String):List<Dynamic>

Executes SQL query, adds result into cache and returns it as list.

Note: If query result has params column, it will decode JSON encoded string that is contained inside.

Parameters:

q

SQL query.

Returns:

SQL query result as a list.

inline put (key:String, value:Dynamic):Void

Adds value into cache.

Parameters:

key

Key.

value

Value.