
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
Kasza.js is simple Cache service/helper/tool for your App.
This package is using UMD pattern, so it means that you can use it:
npmnpm install kasza-js
Download version that fits your better:
And simply add HTML tag:
<script type="text/javascript" src="kasza.min.js"></script>
// set value 'kiszony' for id 'ogorek'
Kasza.set('ogorek', 'kiszony');
// get value for id 'ogorek'
Kasza.get('ogorek'); // will return 'kiszony'
What's special about it? Well, you can use it as storage between files. Example:
In file1.js:
import Kasza
var commonData = {
key: value,
fn: function() {
return true;
}
};
Kasza.set('common data', commonData);
In file2.js:
import Kasza
var commonData = Kasza.get('commmon data');
In file1.js:
import Kasza
var temporaryData = [1, 2, 3];
// set TTL to 1 minute (60,000ms)
Kasza.set('tmp data', temporaryData, 60000);
In file2.js:
import Kasza
var temporaryData = Kasza.get('tmp data'); // will return proper data
setTimeout(function() {
temporaryData = Kasza.get('tmp data'); // will return undefined
}, 60001);
Kasza.setup({
// by default it's false
debug: true
});
Kasza.setup({
debug: function(msg) {
// do something with msg
}
})
Why "Kasza"? What does it mean? How should I even pronounce it?!
Kasza is Polish word and means groats, kasha. According to Wiktionary it's pronounced /Ëka.Ęa/.
Why? Well - because for kasza for me sounds simmilar to cache. That's all đ
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
Kasza.js is simple Cache service/helper/tool for your App
We found that kasza-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.