{"id":20610542,"url":"https://github.com/reugn/aerospike-client-kotlin","last_synced_at":"2025-10-28T20:14:34.075Z","repository":{"id":45145303,"uuid":"423429423","full_name":"reugn/aerospike-client-kotlin","owner":"reugn","description":"Aerospike Client for Kotlin","archived":false,"fork":false,"pushed_at":"2025-01-11T17:29:55.000Z","size":202,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T16:03:25.294Z","etag":null,"topics":["aerospike","aerospike-client","coroutine-library","kotlin","kotlin-library"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reugn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-01T10:49:54.000Z","updated_at":"2025-01-11T17:19:23.000Z","dependencies_parsed_at":"2022-09-26T22:10:49.151Z","dependency_job_id":null,"html_url":"https://github.com/reugn/aerospike-client-kotlin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Faerospike-client-kotlin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Faerospike-client-kotlin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Faerospike-client-kotlin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reugn%2Faerospike-client-kotlin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reugn","download_url":"https://codeload.github.com/reugn/aerospike-client-kotlin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249006599,"owners_count":21197307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aerospike","aerospike-client","coroutine-library","kotlin","kotlin-library"],"created_at":"2024-11-16T10:17:09.230Z","updated_at":"2025-10-28T20:14:29.037Z","avatar_url":"https://github.com/reugn.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aerospike-client-kotlin\n[![Build](https://github.com/reugn/aerospike-client-kotlin/actions/workflows/build.yml/badge.svg)](https://github.com/reugn/aerospike-client-kotlin/actions/workflows/build.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.reugn/aerospike-client-kotlin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.reugn/aerospike-client-kotlin/)\n\nAerospike Client for Kotlin wraps the Java client callback-based asynchronous methods and provides an idiomatic Kotlin API using coroutines and `Flow`.\n\nThe `AerospikeAsyncClient` takes the Java `AerospikeClient` as a constructor parameter and exposes it via the `asJava()` method.\nMake sure to set the [ClientPolicy.eventLoops](https://docs.aerospike.com/docs/client/java/usage/async/eventloop.html) when creating the Java client.\n\n## Getting started\n### Add as a dependency\n```kotlin\ndependencies {\n    implementation(\"io.github.reugn:aerospike-client-kotlin:\u003cversion\u003e\")\n}\n```\n\n### Build from source\n```sh\n./gradlew build\n```\n\n## Examples\n```kotlin\n@Test\nfun `Perform operations on a key`(): Unit = runBlocking {\n    val record = asyncClient.operate(\n        null, keys[0],\n        Operation.put(Bin(intBin, 100)),\n        Operation.get()\n    )\n    assertEquals(100, record?.getInt(intBin))\n}\n\n@Test\nfun `Query all`(): Unit = runBlocking {\n    val queryStatement = QueryStatement(namespace, setName = set)\n    val flow = asyncClient.query(null, queryStatement)\n    val recordsNumber = flow.toList().size\n    assertEquals(keysSize, recordsNumber)\n}\n```\n\n## License\nLicensed under the [Apache 2.0 License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freugn%2Faerospike-client-kotlin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freugn%2Faerospike-client-kotlin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freugn%2Faerospike-client-kotlin/lists"}