Class: Vrac

Vrac(options)

Vuex Rest API Cacher class. Generates Vuex stores based on the supplied config. The stores have actions for fetching API data, mutators for caching them and getters for accessing the cache.

Constructor

new Vrac(options)

Instantiate the class.
Parameters:
Name Type Description
options VracOptions
Source:

Members

actions

Get the actions for this module.
Source:

getters

Get the getters for this module.
Source:

mutations

Get the mutators for this module.
Source:

state

Get the default state for this module.
Source:

store

Get the entire store for this module, for Vuex.
Source:

Methods

getCacher(options) → {function}

Get the default cacher.
Parameters:
Name Type Description
options object
Properties
Name Type Description
identified boolean Whether this is a cacher for an identified API call or not.
binary boolean Whether this is a cacher for a binary API call or not.
Source:
Returns:
Type
function