ballerina-platform / ballerina-lang

The Ballerina Programming Language
https://ballerina.io/
Apache License 2.0
3.58k stars 738 forks source link

Redesign Ballerina Cache API #20794

Closed ldclakmal closed 4 years ago

ldclakmal commented 4 years ago

Description: The Ballerina cache API have to be revisited and refactored with reference to the factors given below.

Discussion at Ballerina Dev Google Group: https://groups.google.com/d/msg/ballerina-dev/Im0BpGqwBhU/zuIdkZ9FBQAJ

Related Issues: https://github.com/ballerina-platform/ballerina-lang/issues/19187 https://github.com/ballerina-platform/ballerina-lang/issues/19557 https://github.com/ballerina-platform/ballerina-lang/issues/19487 https://github.com/ballerina-platform/ballerina-lang/issues/20614 https://github.com/ballerina-platform/ballerina-lang/issues/10510

Related Discussions: https://groups.google.com/d/msg/ballerina-dev/2aECiDPnL6A/5s9XmoG2AAAJ https://groups.google.com/d/msg/ballerina-dev/4VkPqATJ1tI/63PW3MR0DgAJ

Related Resource: https://en.wikipedia.org/wiki/Cache_replacement_policies https://guava.dev/releases/21.0/api/docs/com/google/common/cache/Cache.html http://chethiya.github.io/ballerina-lru-cache.html https://github.com/chethiya/ballerina-cache/blob/master/src/cache/lru-cache.bal https://www.geeksforgeeks.org/lru-cache-implementation/ https://www.interviewcake.com/concept/java/lru-cache https://stackoverflow.com/questions/2504178/lru-cache-design

ldclakmal commented 4 years ago

Please refer to the discussion below. https://groups.google.com/d/msg/ballerina-dev/Im0BpGqwBhU/zuIdkZ9FBQAJ