{"id":46686,"library":"turing-cache","title":"turing-cache","description":"Application cache support for Node.js, version 0.50.0. Provides a caching abstraction layer for turing microservices, with configurable backends. Suitable for caching patterns in distributed systems. Released under Apache-2.0 license. Part of the turing-microservice ecosystem.","status":"active","version":"0.50.0","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/otto-de/turing-microservice","tags":["javascript"],"install":[{"cmd":"npm install turing-cache","lang":"bash","label":"npm"},{"cmd":"yarn add turing-cache","lang":"bash","label":"yarn"},{"cmd":"pnpm add turing-cache","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Named export for the cache class.","wrong":"const Cache = require('turing-cache').Cache","symbol":"Cache","correct":"import { Cache } from 'turing-cache'"},{"note":"Factory function to create a cache instance.","wrong":"const createCache = require('turing-cache').createCache","symbol":"createCache","correct":"import { createCache } from 'turing-cache'"},{"note":"In-memory cache backend.","wrong":"const MemoryBackend = require('turing-cache').MemoryBackend","symbol":"MemoryBackend","correct":"import { MemoryBackend } from 'turing-cache'"}],"quickstart":{"code":"import { createCache, MemoryBackend } from 'turing-cache';\n\nconst cache = createCache({\n  backend: new MemoryBackend(),\n  ttl: 60000 // 1 minute\n});\n\nawait cache.set('key', { data: 'value' });\nconst value = await cache.get('key');\nconsole.log(value); // { data: 'value' }\n\nawait cache.delete('key');\nconst missing = await cache.get('key');\nconsole.log(missing); // null","lang":"typescript","description":"Initializes a cache with in-memory backend, sets and retrieves a value, then deletes it."},"warnings":[],"env_vars":null,"search_vec":"'-2.0':32 '0.50.0':10 'abstract':14 'apach':31 'applic':4 'backend':21 'cach':3,5,13,24 'configur':20 'distribut':27 'ecosystem':40 'javascript':41 'layer':15 'licens':33 'microservic':18,39 'node.js':8 'part':34 'pattern':25 'provid':11 'releas':29 'suitabl':22 'support':6 'system':28 'ture':2,17,38 'turing-cach':1 'turing-microservic':37 'version':9","created_at":"2026-06-07T13:01:08.385358+00:00","updated_at":"2026-06-07T13:01:08.385358+00:00","problems":[],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/otto-de/turing-microservice/tree/master/packages/turing-cache#readme","github":"ssh://git@github.com/otto-de/turing-microservice","docs":null,"changelog":null,"pypi":null,"npm":"turing-cache","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}