1/** 2 * Interface for classes that represents a Storage Service 3 * @interface 4 */ 5var StorageServiceInterface = function () { 6 /** 7 * Return true if key item exists, otherwise, false 8 * @param {string} key 9 * @returns {boolean} 10 */ 11 this.has = function (key) {}; 12 13 /** 14 * Return the stored item if exists, otherwise, null 15 * @param {string} key 16 * @returns {(object|null)} Object stored or null 17 */ 18 this.fetch = function (key) {}; 19 20 /** 21 * Return true if the item was stored, otherwise, false 22 * @param {string} key 23 * @param {*} value - Stored value 24 * @param {(number|null)} [expiration = null] - Expiration time(miliseconds) 25 * @returns {boolean} 26 */ 27 this.save = function (key, value, expiration) { 28 expiration = expiration || null; 29 }; 30 31 /** 32 * Return true if the item was deleted, otherwise, false 33 * @param {string} key 34 * @returns {boolean} 35 */ 36 this.remove = function (key) {}; 37}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.