Skip to content

chamil321/module-ballerina-cache

 
 

Repository files navigation

Ballerina Cache Library

Build Daily build GitHub Last Commit License

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.

Building from the Source

Execute the commands below to build from source.

  1. To build the library,

     ./gradlew clean build
    
  2. To build the module without tests,

     ./gradlew clean build -PskipBallerinaTests
    
  3. To debug the tests,

     ./gradlew clean build -PdebugBallerina=<port>
    

Contributing to Ballerina

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.

Code of Conduct

All contributors are encouraged to read the Ballerina Code of Conduct.

Useful Links

About

Ballerina cache Module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published