Skip to content

Commit

Permalink
refactor: finalize CacheManager API
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Mar 26, 2020
1 parent f904d79 commit ad4ee7e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/CacheManager/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ export class CacheManager implements CacheManagerContract {
}

/**
* Returns the template and the presenter class from the
* cache. If caching is disabled, then it will
* return undefined.
* Returns the template from the cache. If caching is disabled,
* then it will return undefined.
*/
public get (absPath: string): undefined | LoaderTemplate {
if (!this.enabled) {
Expand All @@ -41,7 +40,7 @@ export class CacheManager implements CacheManagerContract {

/**
* Set's the template path and the payload to the cache. If
* cache is disabled, then this function returns in noop.
* cache is disabled, then this function results in a noop.
*/
public set (absPath: string, payload: LoaderTemplate) {
if (!this.enabled) {
Expand Down

0 comments on commit ad4ee7e

Please sign in to comment.