(key)
| 418 | } |
| 419 | |
| 420 | read(key) { |
| 421 | this.log(`READ ${key}`); |
| 422 | if (key.indexOf("#") !== -1) { |
| 423 | key = key.substr(1); |
| 424 | if (isSurge || isLoon) { |
| 425 | return $persistentStore.read(key); |
| 426 | } |
| 427 | if (isQX) { |
| 428 | return $prefs.valueForKey(key); |
| 429 | } |
| 430 | if (isNode) { |
| 431 | return this.root[key]; |
| 432 | } |
| 433 | } else { |
| 434 | return this.cache[key]; |
| 435 | } |
| 436 | } |
| 437 | |
| 438 | delete(key) { |
| 439 | this.log(`DELETE ${key}`); |
no test coverage detected