Comments (5)
Hmm.. Not sure about that one. My concern is that I don't want the library to do too much, and become bloated with features that would rarely be useful.
Can you provide a scenario where you think this would be useful?
from angular-locker.
In my case I'm using local storage as a cache to reduce server requests. however I want the cached data to "expire" after a set time to prevent old data from hanging around. i can do this externally to angular-locker, but it would be awesome to just pass a TTL when setting data
*** EDIT ***
Just to give you an idea, here's the jStorage implementation - https://github.com/andris9/jStorage/blob/master/jstorage.js#L490
from angular-locker.
OK I see what you mean. I will have a think as to how I would implement it, and probably throw together a quick prototype and see where I get.
Thanks!
from angular-locker.
awesome! Thanks for looking into it!
from angular-locker.
decided not to add this for now.. might look at it again at some point
from angular-locker.
Related Issues (20)
- locker bind to scope doesnt work as expected HOT 9
- lockerProvider throws error when trying to setDefaultDriver HOT 1
- README out of date HOT 2
- Is it compatible with angular 1.4/material? HOT 1
- [Feature Request] Add where method to find value location HOT 3
- Force invalidation of one item
- Problem when trying to put or access multiple 'session' object. HOT 3
- LocalStorage gets reset on window.history.back()
- locker.put null values HOT 1
- Webpack HOT 8
- Documentation Request - 100% Angular Fallback HOT 1
- Safari Private Browsing HOT 10
- clean() does not work on 'session' driver and namespace with a dot HOT 1
- chrome map.js parsing error HOT 4
- How to bind when using "controller as" syntax? HOT 1
- Why the value in storage after I close the browser HOT 2
- How to save info in each tab in the same browser HOT 2
- Feature request: locker.getDriverName()
- Doc should encourage minification-friendly practice 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 angular-locker.