problem: ineffective mem cache implementation

This commit is contained in:
Igor Artamonov
2020-07-20 21:34:52 -04:00
parent 0d1980ce70
commit c80eb14847
4 changed files with 25 additions and 29 deletions

View File

@@ -71,6 +71,7 @@ class BlocksMemCacheSpec extends Specification {
cache.add(BlockContainer.from(block))
}
cache.purge()
def act1 = cache.read(BlockId.from(hash1)).block()
def act2 = cache.read(BlockId.from(hash2)).block()

View File

@@ -67,6 +67,7 @@ class TxMemCacheSpec extends Specification {
tx.hash = TransactionId.from(hash)
cache.add(TxContainer.from(tx))
}
cache.purge()
def act1 = cache.read(TxId.from(hash1)).block()
def act2 = cache.read(TxId.from(hash2)).block()