-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
94 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
package storageunit | ||
|
||
import "github.com/multiversx/mx-chain-storage-go/storageUnit" | ||
import ( | ||
"github.com/multiversx/mx-chain-storage-go/common" | ||
) | ||
|
||
const ( | ||
// LRUCache defines a cache identifier with least-recently-used eviction mechanism | ||
LRUCache = storageUnit.LRUCache | ||
LRUCache = common.LRUCache | ||
// SizeLRUCache defines a cache identifier with least-recently-used eviction mechanism and fixed size in bytes | ||
SizeLRUCache = storageUnit.SizeLRUCache | ||
SizeLRUCache = common.SizeLRUCache | ||
) | ||
|
||
// DB types that are currently supported | ||
const ( | ||
// LvlDB represents a levelDB storage identifier | ||
LvlDB = storageUnit.LvlDB | ||
LvlDB = common.LvlDB | ||
// LvlDBSerial represents a levelDB storage with serialized operations identifier | ||
LvlDBSerial = storageUnit.LvlDBSerial | ||
LvlDBSerial = common.LvlDBSerial | ||
// MemoryDB represents an in memory storage identifier | ||
MemoryDB = storageUnit.MemoryDB | ||
MemoryDB = common.MemoryDB | ||
) | ||
|
||
// Shard id provider types that are currently supported | ||
const ( | ||
BinarySplit = storageUnit.BinarySplit | ||
BinarySplit = common.BinarySplit | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters