Displaying 1 to 14 from 14 results

moize - The consistently-fast, complete memoization solution for JS

  •    Javascript

moize is a consistently blazing fast memoization library for JavaScript. It handles multiple parameters (including default values) without any additional configuration, and offers a large number of options to satisfy any number of potential use-cases. All parameter types are supported, including circular objects, functions, etc. There are also a number of shortcut methods to memoize for unique use-cases.

jqExpire - A jQuery plugin to automatically hide page elements after an 'expiry' date and/or time.

  •    JQuery

A jQuery plugin to automatically hide page elements after an 'expiry' date and/or time.




throttling - Throttle a function and cache the result for x milliseconds

  •    Javascript

Throttle a function and cache the result for x milliseconds.The arguments parsed to the callback will be cached according to the same rules as described previously, so subsequent executions of runner will just call the supplied callback function with the previous arguments until the cache expires.

expired - Calculate when HTTP cache headers expire

  •    Javascript

expired accepts HTTP headers as an argument and will return information on when the resource will expire. Cache-Control and Expires headers are supported, if both exist Cache-Control takes priority (Why?).You can make the functions pure by passing in a JavaScript Date object to compare to instead of depending on new Date(). This isn't necessary for expired.on as it doesn't compare dates and is already pure.


expiry-map - A Map implementation with expirable items

  •    TypeScript

Memory is automatically released when an item expires by removing it from the Map. Milliseconds until an item in the Map expires.

expiry-set - A Set implementation with expirable keys

  •    TypeScript

Memory is automatically released when an item expires by removing it from the Set. Milliseconds until a key in the Set expires.

redux-persist-transform-expire - Add expiration to your persisted store

  •    Javascript

Add expiration to your persisted store. Your expires key should be present in each reducer, which should be expired. E.g.

micro-memoize - A tiny, crazy fast memoization library for the 95% use-case

  •    Javascript

As the author of moize, I created a consistently fast memoization library, but moize has a lot of features to satisfy a large number of edge cases. micro-memoize is a simpler approach, focusing on the core feature set with a much smaller footprint (~1.0kB minified+gzipped). Stripping out these edge cases also allows micro-memoize to be faster across the board than moize. Custom method to compare equality of keys, determining whether to pull from cache or not, by comparing each argument in order.

cache2go - Simple go object caching library with LRU and expiration capabilities

  •    Go

Golang simple object caching library with LRU and expiration capabilities. The items are evicted if the capacity is exceeded or if they expire. See the test file for wroking examples.