Comments (2)
The warning is gone. Thank you very much.
from ttlcache.
I'm not super familiar with next, but this looks like you're attempting to bundle some code for the frontend, which has a reference to TTLCache (that is, referencing it via closure from a React component). The code works, but it looks like the bundler is getting upset because of the require()
.
Since node exposes performance
as a global, I'll just use that instead. It only means that node versions that have the perf_hooks
module but don't have the performance
global will use Date instead of performance.
from ttlcache.
Related Issues (18)
- typescript support HOT 1
- purgeStale skips purge due to expiration ceil (assumption) making cache use stale values HOT 2
- Module not found: Can't resolve 'perf_hooks' HOT 4
- TTL = Infinity HOT 4
- Feature request: dispose function should be passed the time when an entry would have naturally expired HOT 2
- Too slow HOT 8
- [BUG] cannot graceful stop due to leaked Timeout HOT 1
- Iterating entries/keys/values in dispose() function results in undefined entry for the stale element HOT 3
- Calling `.clear()` while elements are in the cache causes an exception when they are subsequently attempted to be purged as stale HOT 1
- bug: deleting an immortal entry causes an error HOT 1
- Feature request: Control over stale entries being emitting before or after collection removal HOT 4
- Feature request: Third argument to `set` can be either an object or Number HOT 2
- cache expiration does not work HOT 10
- Potential race condition issues HOT 3
- keys function can't return key of Infinity ttl HOT 2
- Add `maxSize` `maxEntrySize` and `sizeCalculation` options HOT 1
- Potential issues in CI environment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttlcache.