New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/cache

Package Overview
Dependencies
Maintainers
1
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/cache - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

phase/phase.bootstrap.ts

4

package.json

@@ -15,3 +15,3 @@ {

},
"license": "ISC",
"license": "MIT",
"main": "index.ts",

@@ -25,3 +25,3 @@ "name": "@travetto/cache",

},
"version": "0.0.10"
"version": "0.0.11"
}
travetto: Cache
===
Provides a simple wrapper around `lru-cache` to provide standard caching constructs. Provides an annotation
to allow caching at the method level throughout the system.
Provides a simple wrapper around `lru-cache` to provide standard caching constructs.
Provides a decorator to allow caching at the method level throughout the system. Will rewrite the method
to cache on successful responses.
```typescript
class Worker {
@Cacheable({ max: 1000 })
calculateExpensiveResult(expression: string) {
...
return value;
}
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc