Skip to content

Commit 32709d1

Browse files
authored
Merge pull request #8 from adamjosefus/development
Clear deprecated stuff
2 parents 74316a5 + 08b1526 commit 32709d1

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ cache.save('key', "My text data", {
8181
callbacks: [
8282
isValid,
8383
() => false,
84-
] // Expired when some callback return false.
84+
] // Expired when some callback returns false.
8585
});
8686
```
8787

Diff for: libs/Cache.ts

-11
Original file line numberDiff line numberDiff line change
@@ -133,17 +133,6 @@ export class Cache<T> {
133133
}
134134

135135

136-
/**
137-
* @deprecated Use `remove` instead.
138-
*
139-
* Delete value from cache.
140-
* @param key
141-
*/
142-
delete(key: string): void {
143-
this.remove(key);
144-
}
145-
146-
147136
#isValid(state: StateType, dependencies: DependenciesType) {
148137
if (dependencies.expire) {
149138
const expired = Date.now() > state.timestamp + dependencies.expire;

0 commit comments

Comments
 (0)