GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ToolGood.Algorithm/JavaScript.Fast/src/IFunctionCache.js at master · toolgood/ToolGood.Algorithm

Expand file tree

/

IFunctionCache.js

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
37 lines (34 loc) · 1.35 KB
/

IFunctionCache.js

Copy path

File metadata and controls

37 lines (34 loc) · 1.35 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
/**
* 函数缓存接口。
* JavaScript 无原生接口,使用抽象基类模拟:子类须重写以下方法,否则调用时抛出未实现错误。
*/
export class IFunctionCache {
/**
* 获取自定义名称信息,并使用缓存来提高性能。对于相同的表达式,将从缓存中返回之前解析的结果,而不是重新解析。
* @param {string} exp
* @returns {DiyNameInfo}
*/
GetDiyNamesWithCache(exp) {
throw new Error('IFunctionCache.GetDiyNamesWithCache() 未实现');
}
/**
* 解析函数表达式,并使用缓存来提高性能。对于相同的函数表达式,函数将从缓存中返回之前解析的结果,而不是重新解析。
* @param {string} funExp
* @returns {FunctionBase}
*/
ParseWithCache(funExp) {
throw new Error('IFunctionCache.ParseWithCache() 未实现');
}
/**
* 解析条件表达式,并使用缓存来提高性能。对于相同的条件表达式,函数将从缓存中返回之前解析的结果,而不是重新解析。
* @param {string} funExp
* @returns {FunctionBase}
*/
ParseConditionWithCache(funExp) {
throw new Error('IFunctionCache.ParseConditionWithCache() 未实现');
}
}
// 浏览器支持
if (typeof window !== 'undefined') {
window.IFunctionCache = IFunctionCache;
}
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.