The cache library is one of the standard library modules of the Ballerina language.
This module provides APIs for handle caching in Ballerina. It consists of a default implementation based on the map data structure. It also provides a default cache eviction policy object, which is based on the LRU eviction algorithm.
For more information on all the operations supported by the cache
, which include the below, go to The Cache Module.
- put
- get
- invalidate
- invalidateAll
- hasKey
- keys
- size
- capacity
For example demonstrations of the usage, go to Ballerina By Examples.
Execute the commands below to build from source.
-
To build the library,
./gradlew clean build
-
To build the module without tests,
./gradlew clean build -PskipBallerinaTests
-
To debug the tests,
./gradlew clean build -PdebugBallerina=<port>
As an open source project, Ballerina welcomes contributions from the community.
You can also check for open issues that interest you. We look forward to receiving your contributions.
For more information, go to the contribution guidelines.
All contributors are encouraged to read the Ballerina Code of Conduct.
- Discuss about code changes of the Ballerina project in [email protected].
- Chat live with us via our Slack channel.
- Post all technical questions on Stack Overflow with the #ballerina tag.