⚙️ Rend le cache du moteur privé
parent
f76f4c6049
commit
be554ee7a1
|
@ -34,8 +34,8 @@ export default class Engine<Names extends string> {
|
|||
parsedRules: ParsedRules<Names>
|
||||
defaultValues: Simulation['situation']
|
||||
situation: Simulation['situation'] = {}
|
||||
cache: Cache
|
||||
cacheWithoutDefault: Cache
|
||||
private cache: Cache
|
||||
private cacheWithoutDefault: Cache
|
||||
|
||||
constructor(rules: string | Rules<Names> | ParsedRules<Names>) {
|
||||
this.cache = emptyCache()
|
||||
|
@ -156,9 +156,4 @@ export default class Engine<Names extends string> {
|
|||
getParsedRules(): ParsedRules<Names> {
|
||||
return this.parsedRules
|
||||
}
|
||||
|
||||
// TODO : this should be private
|
||||
getCache(): Cache {
|
||||
return this.cache
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue