Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
node-ts-cache-storage-ioredis
Advanced tools
IoRedis storage module for node-ts-cache.
An IoRedis instance must be created and passed to the library. See https://github.com/luin/ioredis#connect-to-redis for available options.
npm i node-ts-cache
npm i node-ts-cache-storage-ioredis
npm i ioredis
npm i -D @types/ioredis
import { Cache, CacheContainer } from "node-ts-cache"
import { IoRedisStorage } from "node-ts-cache-storage-ioredis"
import IoRedis from "ioredis"
const ioRedisInstance = new IoRedis({
port: 6379, // Redis port
host: "127.0.0.1", // Redis host
family: 4, // 4 (IPv4) or 6 (IPv6)
password: "auth",
db: 0
})
const userCache = new CacheContainer(new IoRedisStorage(ioRedisInstance))
class MyService {
@Cache(userCache, { ttl: 60 })
public async getUsers(): Promise<string[]> {
return ["Max", "User"]
}
}
FAQs
Redis storage module for node-ts-cache
The npm package node-ts-cache-storage-ioredis receives a total of 509 weekly downloads. As such, node-ts-cache-storage-ioredis popularity was classified as not popular.
We found that node-ts-cache-storage-ioredis demonstrated a not healthy version release cadence and project activity because the last version was released 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.