InMemory provider

The InMemory provider was born as a testing tool, but in turn we found that it can be useful in other areas as well. It is a volatile storage that can be handled through the same JavaScript Language Query as the other providers.

Feel free to make use of it if you need a queryable, transactional storage space for nonpersistent information, such as the runtime world data in a game. It can also be extremely useful for cacheing data in memory to improve application speed, as you can continue using the exact same coding paradigm for accessing the background storage and the memory cache.

While in the case of an OData or SQLite provider, the JSLQ code must be compiled to the data layer’s native language (ie. OData queries or SQL code), the InMemoryProvider runs everything as native Javascript, which makes it the most powerful provider in terms of code allowed in the predicates.

, ,