The provider that is used to find messages when they are not in the cache
The default limit size
The maximum number of messages that are allowed to be stored in the cache
Sets the maximum number of messages that are allowed to be stored in the cache
The current size of the cache
The stored IDs and formations
an iterator that will walk through the stored formations
The string to use for the default toString
function
Empties the cache
The stored IDs and formations
an iterator that will walk through the stored formations
Retrieves a formation by ID
the globally unique identification value of the formation to retrieve
the provider options
the found formation
Invokes a callback on each entry in the cache, undeterminate order
the function to invoke
the argument to bind to the callback
. Usually better to use a arrow function
Retrieves a cached formation
the globally unique identification value to retrieve
the formation or undefined
if not found
Determines if the cache has a certain formation stored
the globally unique identification value to search for
true
if the formation is available
The stored formation identification values
an iterator that will walk through the stored IDs
Invoked when a fetch
call fails to find the target GUID in the cache
the GUID to retrieve
the provider options
the provider formations
Shrinks the cache to a certain size
Allows derived classes to populate the cache
the data to add to the cache
Converts the cache into it's JSON representation
the object to serialize with JSON.stringify
The stored formations
an iterator that will walk through the stored formations
Provides a way to retrieve and access conversation formations. Has configurable limits on the number of formations that are stored. If the provider has support, the cache will preload future messages.