Skip to content

polykv/polykv-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PolyKV - Java

Java Version License Stars Platform

Unified Key-Value Store for Java.

A no-frills, reliable persistence library for Java. Whether you are maintaining a legacy Swing app or building a modern Android utility, PolyKV keeps your data handling simple.

One API, Everywhere. This library is part of the PolyKV ecosystem. Use the same consistent API across 12+ languages.

✨ Why PolyKV Java?

  • ☕️ Pure Java Zero native code (JNI). Compiles anywhere a JVM exists.

  • 🔄 Android Compatible Designed to work alongside Android's File and Context APIs, making it a great alternative to raw SharedPreferences.

  • 📦 Lightweight Minimal dependency footprint. No heavy ORM frameworks required.

📦 Installation

Gradle

implementation 'com.polykv:polykv:1.0.0'

🚀 Usage

Complete Example

import com.polykv.PolyKV;

public class Main {
    public static void main(String[] args) {
        // Init
        PolyKV kv = new PolyKV("ServerConfig");
        
        // 1. Save
        kv.setString("db_host", "localhost");
        kv.setNumber("max_pool", 20);
        
        // 2. Read
        String host = kv.getString("db_host");
        System.out.println("Host: " + host);

        // 3. Update
        kv.setNumber("max_pool", 50);

        // 4. Delete
        kv.remove("db_host");

        // 5. Clear All
        kv.clear();
    }
}

🌍 Platform Support

Language Verified Runtime (✅) Build Only (🛠)
TypeScript CLI (Node.js), Browser, React Native (iOS/Android) -
Dart Flutter (iOS/Android/macOS), CLI -
Go macOS, Linux, Windows, iOS, Android, CLI -
Rust macOS, iOS, Android, CLI Linux, Windows
Swift iOS, macOS, CLI -
C++ macOS, iOS, Android, CLI -
Python CLI, Web, Android -
Kotlin CLI, Web, Android -
C# CLI Android, Windows
Java CLI, Android -
Ruby CLI -
PHP CLI -

✅ Runtime Verified: Full CRUD operations verified via automated tests on actual devices/simulators.

📜 License

MIT

About

Zero-Config, Native Key-Value Store for Java

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages