⚙️ Rend le cache du moteur privé

pull/1008/head
Maxime Quandalle 2020-05-06 09:05:29 +02:00
parent f76f4c6049
commit be554ee7a1
1 changed files with 2 additions and 7 deletions

View File

@ -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
}
}