cacheability
Advanced tools
Comparing version 0.0.57 to 0.0.59
@@ -6,3 +6,5 @@ import { CacheControl, CacheHeaders, Metadata } from "../types"; | ||
* A utility class to parse, store and print http cache headers. | ||
* | ||
* ```typescript | ||
* import { Cacheability } from "cacheability"; | ||
* const cacheability = new Cacheability(); | ||
@@ -28,2 +30,3 @@ * ``` | ||
* instance is still valid, by comparing it to the current timestamp. | ||
* | ||
* ```typescript | ||
@@ -38,2 +41,3 @@ * cacheability.parseCacheControl("public, max-age=3"); | ||
* ``` | ||
* | ||
*/ | ||
@@ -47,2 +51,3 @@ checkTTL(): boolean; | ||
* cacheability instance's metadata property. | ||
* | ||
* ```typescript | ||
@@ -66,2 +71,3 @@ * const { | ||
* The data is stored on the cacheability instance's metadata property. | ||
* | ||
* ```typescript | ||
@@ -85,2 +91,3 @@ * const headers = new Headers({ | ||
* are derived from the TTL stored in the metadata. | ||
* | ||
* ```typescript | ||
@@ -87,0 +94,0 @@ * cacheability.parseCacheControl("public, max-age=60, s-maxage=60"); |
{ | ||
"name": "cacheability", | ||
"version": "0.0.57", | ||
"version": "0.0.59", | ||
"description": "A utility class to parse, store and print http cache headers.", | ||
@@ -5,0 +5,0 @@ "author": "Dylan Aubrey <dylanaubrey@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
217989
585