-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathinterface.js
42 lines (39 loc) · 979 Bytes
/
interface.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Search Interface
* @interface
* @this {_search_struct}
* @const
*/
function _search_struct(options) {}
/** @type {Function} */
_search_struct.register;
/** @type {Function} */
_search_struct.prototype.add;
/** @type {Function} */
_search_struct.prototype.update;
/** @type {Function} */
_search_struct.prototype.remove;
/** @type {Function} */
_search_struct.prototype.reset;
/** @type {Function} */
_search_struct.prototype.destroy;
/** @type {Function} */
_search_struct.prototype.search;
/** @type {Function} */
_search_struct.prototype.optimize;
/**
* Cache Interface
* @interface
* @this {_cache_struct}
* @param {number=} expiration
* @const
*/
function _cache_struct(expiration) {}
/** @type {function(string, *, boolean=)} */
_cache_struct.prototype.set;
/** @type {function(string, boolean=):*} */
_cache_struct.prototype.get;
/** @type {function(string):*} */
_cache_struct.prototype.remove;
/** @type {function()} */
_cache_struct.prototype.reset;