![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
xyz.ronella.gosu:gcache
Advanced tools
A simple gosu implementation of concurrent LRU Map.
Constructors |
---|
ConcurrentLRUCache<TYPE_KEY, TYPE_VALUE>(code : String, maxSize : int, evictLogic : BiConsumer<String, Map.Entry<TYPE_KEY, TYPE_VALUE>>) |
ConcurrentLRUCache<TYPE_KEY, TYPE_VALUE>(code : String, maxSize : int, losslessLogic : ILosslessLogic<TYPE_KEY, TYPE_VALUE>) |
ConcurrentLRUCache<TYPE_KEY, TYPE_VALUE>(code : String, maxSize : int) |
ConcurrentLRUCache<TYPE_KEY, TYPE_VALUE>(maxSize : int, evictLogic : BiConsumer<String,Map.Entry<TYPE_KEY, TYPE_VALUE>>) |
ConcurrentLRUCache<TYPE_KEY, TYPE_VALUE>(maxSize : int) |
Parameter | Type | Default | Description |
---|---|---|---|
code | String | default | The code that groups the Map.Entry. |
maxSize | int | The maximum key count of a particular code group in memory. Anything beyond this limit will trigger either the evictLogic or the losslessLogic. | |
evictLogic | BiConsumer<String, Map.Entry<TYPE_KEY, TYPE_VALUE>> | A custom eviction logic. | |
losslessLogic | ILosslessLogic<TYPE_KEY, TYPE_VALUE> | DefaultLosslessLogic<TYPE_KEY, TYPE_VALUE> | An implementation of ILosslessLogic. |
Method | Description |
---|---|
public function memCacheSize() : int | Returns the size of cache in memory. |
public function memCachedKeys() : Set<TYPE_KEY> | Returns the keys in memory. |
public function memCachedValues() : Collection<TYPE_VALUE> | Returns the values in memory. |
An implementation of ILosslessLogic<TYPE_KEY, TYPE_VALUE> that only accepts String as the key and Value that must be tag as Serializable. The work of this class will only start if the maxSize key allocated for memory storage was exceeded. If the key counts is beyond the maxSize indicated, all the key entries that are not used will be serialized to the location defined by the environment variable GCACHE_DIR or if it is not present to your <TMP_DIR>\gcache directory. The extension name of a serialized objects is ser.
Add the following maven dependency to your gosu project:
Property | Value |
---|---|
Group ID | xyz.ronella.gosu |
Artifact ID | gcache |
Version | 1.1.0 |
Using gradle, this can be added as a dependency entry like the following:
compile group: 'xyz.ronella.gosu', name: 'gcache', version: '1.1.0'
On your code, once an instance of ConcurrentLRUCache was created, use it like you are using an instance of a Map.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
A simple gosu implementation of concurrent LRU Map.
We found that xyz.ronella.gosu:gcache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.