{"id":20632200,"url":"https://github.com/qedus/nds","last_synced_at":"2025-04-30T15:23:49.845Z","repository":{"id":13585645,"uuid":"16278325","full_name":"qedus/nds","owner":"qedus","description":"A Go (golang) Google App Engine datastore package with strongly consistent caching.","archived":false,"fork":false,"pushed_at":"2024-05-06T22:32:39.000Z","size":398,"stargazers_count":147,"open_issues_count":10,"forks_count":27,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-30T15:23:31.717Z","etag":null,"topics":["appengine","datastore","go","memcache"],"latest_commit_sha":null,"homepage":"http://godoc.org/github.com/qedus/nds","language":"Go","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/qedus.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-01-27T12:24:16.000Z","updated_at":"2025-04-04T13:22:48.000Z","dependencies_parsed_at":"2022-08-30T21:12:51.184Z","dependency_job_id":"7ec98158-1b54-4a68-a1ce-13c88898bb55","html_url":"https://github.com/qedus/nds","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedus%2Fnds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedus%2Fnds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedus%2Fnds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qedus%2Fnds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qedus","download_url":"https://codeload.github.com/qedus/nds/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251729857,"owners_count":21634297,"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":["appengine","datastore","go","memcache"],"created_at":"2024-11-16T14:15:23.515Z","updated_at":"2025-04-30T15:23:49.741Z","avatar_url":"https://github.com/qedus.png","language":"Go","readme":"# nds\n\n[![Build Status](https://travis-ci.org/qedus/nds.svg?branch=master)](https://travis-ci.org/qedus/nds) [![Coverage Status](https://coveralls.io/repos/github/qedus/nds/badge.svg?branch=master)](https://coveralls.io/github/qedus/nds?branch=master) [![GoDoc](https://godoc.org/github.com/qedus/nds?status.png)](https://godoc.org/github.com/qedus/nds)\n\nPackage `github.com/qedus/nds` is a datastore API for the Google App Engine (GAE) [Go Runtime Environment](https://developers.google.com/appengine/docs/go/) that uses memcache to cache all datastore requests. It is compatible with both Classic and Managed VM products. This package guarantees strong cache consistency when using `nds.Get*` and `nds.Put*`, meaning you will never get data from a stale cache.\n\nExposed parts of this API are the same as the official one distributed by Google ([`google.golang.org/appengine/datastore`](https://godoc.org/google.golang.org/appengine/datastore)). However, underneath `github.com/qedus/nds` uses a caching stategy similar to the GAE [Python NDB API](https://developers.google.com/appengine/docs/python/ndb/). In fact the caching strategy used here even fixes one or two of the Python NDB [caching consistency bugs](http://goo.gl/3ByVlA).\n\nYou can find the API documentation at [http://godoc.org/github.com/qedus/nds](http://godoc.org/github.com/qedus/nds).\n\nOne other benefit is that the standard `datastore.GetMulti`, `datastore.PutMulti` and `datastore.DeleteMulti` functions only allow you to work with a maximum of 1000, 500 and 500 entities per call respectively. The `nds.GetMulti`, `nds.PutMulti` and `nds.DeleteMulti` functions in this package allow you to work with as many entities as you need (within timeout limits) by concurrently calling the appropriate datastore function until your request is fulfilled.\n\n## How To Use\n\nYou can use this package in *exactly* the same way you would use [`google.golang.org/appengine/datastore`](https://godoc.org/google.golang.org/appengine/datastore). However, it is important that you use `nds.Get*`, `nds.Put*`, `nds.Delete*` and `nds.RunInTransaction` entirely within your code. Do not mix use of those functions with the `google.golang.org/appengine/datastore` equivalents as you will be liable to get stale datastore entities from `github.com/qedus/nds`.\n\nUltimately all you need to do is find/replace the following in your codebase:\n\n- `datastore.Get` -\u003e `nds.Get`\n- `datastore.Put` -\u003e `nds.Put`\n- `datastore.Delete` -\u003e `nds.Delete`\n- `datastore.RunInTransaction` -\u003e `nds.RunInTransaction`\n\n## Versions\n\nVersions are specified using [Go Modules](https://github.com/golang/go/wiki/Modules).\n\n- Version 1.x.x: Can be found on branch [`master`](https://github.com/qedus/nds/tree/master) and uses the `google.golang.org/appengine` package.\n- Version 2.x.x: Can be found on branch [`v2`](https://github.com/qedus/nds/tree/v2). This is a major update and takes advantage of the new `cloud.google.com/go/datastore` package provided by Google. It currently in an experimental state and we welcome contributions.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqedus%2Fnds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqedus%2Fnds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqedus%2Fnds/lists"}