stylefy.impl.cache
cache-expired?
(cache-expired? cache-created expiration-age now)
cache-key-styles
(cache-key-styles instance-id)
cache-styles
(cache-styles styles)
(cache-styles styles instance-id)
Caches the given style if caching is used.
Throws QUOTA_EXCEEDED_ERR if the storage is full.
clear-styles
(clear-styles)
(clear-styles instance-id)
default-cache-expiration-time-s
now-in-seconds
(now-in-seconds)
read-cache-value
(read-cache-value key)
Reads the cache if caching is used.
set-cache-created-time
(set-cache-created-time time-created)
(set-cache-created-time time-created instance-id)
use-caching!
(use-caching! cache-options)
(use-caching! cache-options instance-id)