{"modulePath":"github.com/bandprotocol/chain","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package requestcache\n\n## Types\n\n```go\ntype Cache struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(basePath string) Cache\n```\nNew creates and returns a new file-backed data caching instance.\n\n```go\nfunc (c Cache) GetLatestRequest(oid types.OracleScriptID, calldata []byte, askCount uint64, minCount uint64) (types.RequestID, error)\n```\nGetLatestRequest loads the latest request from the file storage. Returns error if the file does not exist.\n\n```go\nfunc (c Cache) SaveLatestRequest(oid types.OracleScriptID, calldata []byte, askCount uint64, minCount uint64, reqID types.RequestID) error\n```\nSaveLatestRequest saves the latest request id to a file with key that combined from event attributes.\n\n","path":"github.com/bandprotocol/chain/pkg/requestcache","name":"requestcache","synopsis":"","isRedistributable":true}
