zombiebox
Version:
ZombieBox is a JavaScript framework for development of Smart TV and STB applications
43 lines (37 loc) • 789 B
JavaScript
/*
* This file is part of the ZombieBox package.
*
* Copyright © 2012-2019, Interfaced
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import UnsupportedFeature from '../errors/unsupported-feature';
/**
* @interface
*/
export default class IStorage {
/**
* Auto append prefix for all keys
* @param {string} prefix
* @throws {UnsupportedFeature}
*/
setKeyPrefix(prefix) {}
/**
* @param {string} key
* @return {?string}
* @throws {UnsupportedFeature}
*/
getItem(key) {}
/**
* @param {string} key
* @param {string} data
* @throws {UnsupportedFeature}
*/
setItem(key, data) {}
/**
* @param {string} key
* @throws {UnsupportedFeature}
*/
removeItem(key) {}
}