UNPKG

tastypie

Version:

Tastypie is a webservice API framework for Node.js based on Django's Tastypie Framework. It provides a convenient, yet powerful and highly customizable, abstraction for creating REST-style interfaces

23 lines (16 loc) 1.18 kB
catbox-memory ============= Memory adapter for [catbox](https://github.com/hapijs/catbox). Lead Maintainer - [Wyatt Preul](https://github.com/geek) Current version: [![Current Version](https://img.shields.io/npm/v/catbox-memory.svg)](https://www.npmjs.org/package/catbox-memory) [![Build Status](https://api.travis-ci.org/hapijs/catbox-memory.svg)](https://travis-ci.org/hapijs/catbox-memory) ### Options - `maxByteSize` - sets an upper limit on the number of bytes that can be stored in the cache. Once this limit is reached no additional items will be added to the cache until some expire. The utilized memory calculation is a rough approximation and must not be relied on. Defaults to `104857600` (100MB). - `allowMixedContent` - by default, all data is cached as JSON strings, and converted to an object using `JSON.parse()` on retrieval. By setting this option to `true`, `Buffer` data can be stored alongside the stringified data. `Buffer`s are not stringified, and are copied before storage to prevent the value from changing while in the cache. Defaults to `false`. Note: the maximum allowed value for `ttl` is `2^31-1`, which is around 24.8 days.