
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@furystack/cache
Advanced tools
A simple caching utility for FuryStack, providing in-memory cache management to improve performance and reduce redundant computations in your applications.
import { Cache } from '@furystack/cache'
const cache = new Cache({ load: (a: number, b: number) => Promise.resolve(a + b) })
const result = await cache.get(1, 2) // 3 will be calculated and cached
const cachedResult = await cache.get(1, 2) // Returns cached value: 3
import { Cache } from '@furystack/cache'
const cache = new Cache({
load: (a: number, b: number) => Promise.resolve(a + b),
expirationMs: 5000, // Cache expires after 5 seconds
})
const result = await cache.get(1, 2) // 3 will be calculated and cached
setTimeout(async () => {
const expiredResult = await cache.get(1, 2) // Cache expired, recalculates: 3
}, 6000)
import { Cache } from '@furystack/cache'
const cache = new Cache({
load: (a: number, b: number) => Promise.resolve(a + b),
capacity: 2, // Limit cache to 2 items
})
await cache.get(1, 2) // 3 will be calculated and cached
await cache.get(2, 3) // 5 will be calculated and cached
await cache.get(3, 4) // 7 will be calculated and cached, evicts (1, 2) from cache
const result = await cache.get(1, 2) // Recalculates: 3
import { Cache } from '@furystack/cache'
const cache = new Cache({
load: (a: number, b: number) => Promise.resolve(a + b),
})
await cache.get(1, 2) // 3 will be calculated and cached
cache.remove(1, 2) // Removes the specific cached item
const result = await cache.get(1, 2) // Recalculates: 3
// Remove specific range, where the sum is 3 or the arguments are as specified
cache.removeRange((entity, args) => {
return entity === 3 || (args[0] === 1 && args[1] === 3)
})
cache.flushAll() // Removes all cached items
import { Cache } from '@furystack/cache'
const cache = new Cache({
load: (a: number, b: number) => Promise.resolve(a + b),
expirationMs: 5000, // Cache expires after 5 seconds
})
const observable = cache.getObservable(1, 2)
observable.subscribe(({ status, value }) => {
console.log(`Cache status: ${status}, Value: ${value}`)
})
FAQs
Cache providers for FuryStack package
We found that @furystack/cache demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.