{"id":17532937,"url":"https://github.com/dragisak/aerospike-monix","last_synced_at":"2025-03-29T02:20:47.048Z","repository":{"id":57718895,"uuid":"145882712","full_name":"dragisak/aerospike-monix","owner":"dragisak","description":"Aerospike client for Monix","archived":false,"fork":false,"pushed_at":"2018-09-06T04:41:11.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-03T12:24:31.845Z","etag":null,"topics":["aerospike","monix","scala"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dragisak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-23T16:53:56.000Z","updated_at":"2018-09-06T04:41:12.000Z","dependencies_parsed_at":"2022-08-27T19:41:48.562Z","dependency_job_id":null,"html_url":"https://github.com/dragisak/aerospike-monix","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragisak%2Faerospike-monix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragisak%2Faerospike-monix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragisak%2Faerospike-monix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dragisak%2Faerospike-monix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dragisak","download_url":"https://codeload.github.com/dragisak/aerospike-monix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246126957,"owners_count":20727646,"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","monix","scala"],"created_at":"2024-10-20T18:06:54.697Z","updated_at":"2025-03-29T02:20:47.019Z","avatar_url":"https://github.com/dragisak.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/dragisak/aerospike-monix.svg?branch=master)](https://travis-ci.org/dragisak/aerospike-monix)\n[![codecov](https://codecov.io/gh/dragisak/aerospike-monix/branch/master/graph/badge.svg)](https://codecov.io/gh/dragisak/aerospike-monix)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.dragishak/aerospike-monix_2.12/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.dragishak/aerospike-monix_2.12)\n\n## Aerospike Monix Client\n\n\n[Aerospike](https://www.aerospike.com/) + [Monix](https://monix.io/) = **aerospike-monix**\n\n### Installation\n\n```sbtshell\nlibraryDependencies += \"com.dragishak\" %% \"aerospike-monix\" % \"0.0.6\"\n```\n\n### Code examples\n\n```scala\nimport com.dragishak.aerospike._\nimport com.aerospike.client.{AerospikeClient, Bin, Key, Record}\nimport com.aerospike.client.async.{EventPolicy, NioEventLoops}\nimport com.aerospike.client.policy.ClientPolicy\nimport monix.eval.Task\nimport monix.execution.Scheduler.Implicits.global\n\n\nval eventPolicy = new EventPolicy()\nval eventLoops = new NioEventLoops(eventPolicy, 0)\nval clientPolicy = new ClientPolicy()\nclientPolicy.eventLoops = eventLoops\n\nval aerospikeClient = new AerospikeClient(clientPolicy, \"localhost\", 3000)\nval client = AerospikeMonixClient(aerospikeClient, eventLoops)\n\nval key = new Key(\"test\", null, \"key1\")\nval bin = new Bin(\"bin1\", \"value2\")\n\nval task: Task[(Boolean, Record, Boolean)] = for {\n  _       \u003c- client.put(key, bin)\n  exists  \u003c- client.exists(key)\n  res     \u003c- client.get(key)\n  existed \u003c- client.delete(key)\n} yield (exists, res, existed)\n\n```\n\n### Currently Supported Operations\n\n* put\n* get\n* delete\n* exists\n* operate\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragisak%2Faerospike-monix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdragisak%2Faerospike-monix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdragisak%2Faerospike-monix/lists"}