Type Definitions
-
Options.FireFerretOptionsObject
-
Properties:
Name Type Default Description mongoOptions.Mongo redisOptions.Redis wideMatchboolean false Use the Wide-Match strategy when checking the cache for queries.
-
Options.MongoObject
-
Dictates MongoDB driver behavior. Additional Driver documentation can be found here.
Properties:
Name Type Default Description uriString The MongoDB URI.
dbNameString The name of the MongoDB database to connect to.
collectionNameString null The default database collection.
ndJSONBoolean false Stream documents using the ndJSON spec.
encodingString "utf-8" Encoding to use when streaming.
-
Options.QueryOptionsObject
-
Properties:
Name Type Argument Default Description streamBoolean <optional>
false Format the query response as a stream.
paginationObject <optional>
null Pagination options.
Properties
Name Type Default Description pageNumber | String null The page number, starting at 1.
sizeNumber | String null The page size, greater than 0.
Example
{ stream: true, pagination: { page: 2, size: 50 } } -
Options.RedisObject
-
Dictates Redis client behavior. Additional Client documentation can be found here.
Properties:
Name Type Default Description ndJSONBoolean false Stream documents using the ndJSON spec.
connectionTimeoutNumber 5000 Timeout in milliseconds when connecting.
countNumber 1000 Default Redis SCAN work amount.
batchSizeNumber 1000 Default batch size when using LPUSH.