Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace DataCache.Find by DataCache.Seek #1740

Merged
merged 15 commits into from
Jul 2, 2020
5 changes: 3 additions & 2 deletions src/neo/IO/Caching/DataCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,10 @@ public void Delete(TKey key)
protected abstract void DeleteInternal(TKey key);

/// <summary>
/// Find the entries that start with the `key_prefix`
/// Find the entries that start with the `keyOrPrefix`
erikzhang marked this conversation as resolved.
Show resolved Hide resolved
/// </summary>
/// <param name="key_prefix">Must maintain the deserialized format of TKey</param>
/// <param name="keyOrPrefix">Must maintain the deserialized format of TKey</param>
erikzhang marked this conversation as resolved.
Show resolved Hide resolved
/// <param name="direction">Forward or Backward</param>
/// <returns>Entries found with the desired prefix</returns>
public IEnumerable<(TKey Key, TValue Value)> Seek(byte[] keyOrPrefix = null, SeekDirection direction = SeekDirection.Forward)
erikzhang marked this conversation as resolved.
Show resolved Hide resolved
{
Expand Down