problem: ineffective mem cache implementation
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user