Escape hatch for arbitrary methods
- Dominant language
- JavaScript
- Stars
- 7
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Example API usage:
```js
var Post = require('./post')
var Nanocache = require('nanocache')
var cache = new Nanocache()
cache(Post, 'prefetch', 1)
cache.render(Post, 1) // equivalent to cache(Post, 'render', 1)
```
This would make the API a bit more flexible while ensuring that `.render` stays easy to call in a clean way.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the API entry points shown in the example: the callable cache(Post, method, args) form and cache.render(Post, args). Trace how method names are dispatched, then add coverage showing that cache.render(Post, 1) behaves like cache(Post, 'render', 1) and that arbitrary methods such as prefetch remain callable.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100