Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

[ON-HOLD] feat: State DB Cache #101

Closed

Conversation

rolsonquadras
Copy link
Member

  • Add a new implementation of VersionedDBProvider and VersionedDB to wrap existing db implementations(leveldb/couchdb) and to support caching of the data.
  • Add state db cache store using gCache library.

Closes #87

Signed-off-by: Rolson Quadras rolson.quadras@securekey.com

@@ -9,3 +13,7 @@ import (
func SetupExtTestEnv() (addr string, cleanup func(string), stop func()) {
return testutil.SetupExtTestEnv()
}

func GetExtStateDBProvider(t testing.TB, dbProvider statedb.VersionedDBProvider) statedb.VersionedDBProvider {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function GetExtStateDBProvider should have comment or be unexported (from golint)

logger.Debugf("Removed folder [%s] for test environment for %s", dbPath, caller)
}

func GetExtStateDBProvider(t testing.TB, dbProvider statedb.VersionedDBProvider) statedb.VersionedDBProvider {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported function GetExtStateDBProvider should have comment or be unexported (from golint)

- Add a new implementation of VersionedDBProvider and VersionedDB to wrap existing db implementations(leveldb/couchdb) and to support caching of the data.
- Add state db cache store using gCache library.

Closes trustbloc#87

Signed-off-by: Rolson Quadras <rolson.quadras@securekey.com>
@rolsonquadras rolsonquadras changed the title feat: State DB Cache [ON-HOLD] feat: State DB Cache May 23, 2019
@rolsonquadras
Copy link
Member Author

This will not be implemented as HL Fabric is adding part of fabric core.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

State DB Cache
2 participants