Class: Cache

Mobizen.Apps.DB.Cache

new Mobizen.Apps.DB.Cache(app, channel)

A Base Class of Cache

Name Type Description
app string

name of app

channel string

name of db channel

Author:

Requires

  • module:loki.js

Classes

CallLog
Music
Photo
Video

Members

app string

channel string

Type Definitions

db loki

Methods

add(doc){Promise}

Name Type Description
doc object
Returns:
Type Description
Promise

all(index){Promise}

Name Type Description
index number
Returns:
Type Description
Promise

clear(){Promise}

Returns:
Type Description
Promise

get(id, index){Promise}

Name Type Description
id string
index number
Returns:
Type Description
Promise

info(){Promise}

Returns:
Type Description
Promise

remove(docs){Promise}

Name Type Description
docs array
Returns:
Type Description
Promise

set(docs){Promise}

Name Type Description
docs array
Returns:
Type Description
Promise
comments powered by Disqus