You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
645 B
JavaScript
28 lines
645 B
JavaScript
|
|
import { searchCache } from "./cache";
|
|
|
|
/**
|
|
* @constructor
|
|
* @abstract
|
|
*/
|
|
|
|
function Engine(index) {
|
|
|
|
index.prototype.searchCache = searchCache;
|
|
|
|
|
|
index.prototype.addAsync = addAsync;
|
|
index.prototype.appendAsync = appendAsync;
|
|
index.prototype.searchAsync = searchAsync;
|
|
index.prototype.updateAsync = updateAsync;
|
|
index.prototype.removeAsync = removeAsync;
|
|
}
|
|
|
|
Engine.prototype.searchCache = searchCache;
|
|
|
|
|
|
Engine.prototype.addAsync = addAsync;
|
|
Engine.prototype.appendAsync = appendAsync;
|
|
Engine.prototype.searchAsync = searchAsync;
|
|
Engine.prototype.updateAsync = updateAsync;
|
|
Engine.prototype.removeAsync = removeAsync; |