generated from didinele/typescript-docker-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# cache | ||
|
||
This is where we deal with caching. A couple of things to note: | ||
|
||
- we use our own encoding format for cache to make encoding/decoding and space usage as efficient as possible. | ||
Refer to the [`binary-encoding` directory](../binary-encoding) | ||
for more information. | ||
Refer to the [`binary-encoding` directory](../binary-encoding) | ||
for more information. | ||
- `Cache` is deliberately not decorated with `@injectable()`, because we have a rather dynamic dependency | ||
of a `CacheEntity`, responsible for specific encoding/decoding ops, defining the cache key and TTL of the | ||
data and so on. As such, we use a factory singleton to create `Cache` instances. | ||
of a `CacheEntity`, responsible for specific encoding/decoding ops, defining the cache key and TTL of the | ||
data and so on. As such, we use a factory singleton to create `Cache` instances. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters