Title: Allow option to auto-remove oldest item when full · Issue #232 · node-cache/node-cache · GitHub
Open Graph Title: Allow option to auto-remove oldest item when full · Issue #232 · node-cache/node-cache
X Title: Allow option to auto-remove oldest item when full · Issue #232 · node-cache/node-cache
Description: When setting a new key at the moment, if the cache is full it will throw an error, We should have an option that, instead of erroring, will remove the oldest cache item and then add the new one.
Open Graph Description: When setting a new key at the moment, if the cache is full it will throw an error, We should have an option that, instead of erroring, will remove the oldest cache item and then add the new one.
X Description: When setting a new key at the moment, if the cache is full it will throw an error, We should have an option that, instead of erroring, will remove the oldest cache item and then add the new one.
Opengraph URL: https://github.com/node-cache/node-cache/issues/232
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow option to auto-remove oldest item when full","articleBody":"When setting a new key at the moment, if the cache is full it will throw an error,\r\n\r\nWe should have an option that, instead of erroring, will remove the oldest cache item and then add the new one.","author":{"url":"https://github.com/davwheat","@type":"Person","name":"davwheat"},"datePublished":"2021-03-25T00:40:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/232/node-cache/issues/232"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c3e073ae-c330-aa1d-a63a-efb180d9841d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D218:16E640:33D12C8:47BC9A9:69650228 |
| html-safe-nonce | 9ca7bca40a70ed46b55584928ff006e888e6a29cd7d004060959026ea71bc048 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjE4OjE2RTY0MDozM0QxMkM4OjQ3QkM5QTk6Njk2NTAyMjgiLCJ2aXNpdG9yX2lkIjoiNzU3NjY1MDI5MTUyODk5NjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8dfad1b27001423d36fb1d1c513e9f238d84cf121d1f4f496eb2fee138829959 |
| hovercard-subject-tag | issue:840418119 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/node-cache/node-cache/232/issue_layout |
| twitter:image | https://opengraph.githubassets.com/693eebfad808eb6b3e94a57634883385416c6f1b9ee949d86b5daca74917bfb6/node-cache/node-cache/issues/232 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/693eebfad808eb6b3e94a57634883385416c6f1b9ee949d86b5daca74917bfb6/node-cache/node-cache/issues/232 |
| og:image:alt | When setting a new key at the moment, if the cache is full it will throw an error, We should have an option that, instead of erroring, will remove the oldest cache item and then add the new one. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davwheat |
| hostname | github.com |
| expected-hostname | github.com |
| None | 409eef8307c7b2774ef22b51d9c9bea7aae00b7c42378f10825b0de95e35b3d8 |
| turbo-cache-control | no-preview |
| go-import | github.com/node-cache/node-cache git https://github.com/node-cache/node-cache.git |
| octolytics-dimension-user_id | 54621913 |
| octolytics-dimension-user_login | node-cache |
| octolytics-dimension-repository_id | 2599450 |
| octolytics-dimension-repository_nwo | node-cache/node-cache |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2599450 |
| octolytics-dimension-repository_network_root_nwo | node-cache/node-cache |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0f2726e2829a4524ee45b32f55dabe51189d33b0 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width