mirror of https://github.com/zkat/cacache-rs.git
feat(get): get::info -> get::entry
BREAKING CHANGE: This renames get::info to get::entry for better symmetry with rm
This commit is contained in:
parent
7123ffa44b
commit
dafc79f481
|
|
@ -247,7 +247,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets entry information and metadata for a certain key.
|
/// Gets entry information and metadata for a certain key.
|
||||||
pub async fn info<P, K>(cache: P, key: K) -> Result<Option<Entry>, Error>
|
pub async fn entry<P, K>(cache: P, key: K) -> Result<Option<Entry>, Error>
|
||||||
where
|
where
|
||||||
P: AsRef<Path>,
|
P: AsRef<Path>,
|
||||||
K: AsRef<str>,
|
K: AsRef<str>,
|
||||||
|
|
@ -439,7 +439,7 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets entry information and metadata for a certain key.
|
/// Gets entry information and metadata for a certain key.
|
||||||
pub fn info_sync<P, K>(cache: P, key: K) -> Result<Option<Entry>, Error>
|
pub fn entry_sync<P, K>(cache: P, key: K) -> Result<Option<Entry>, Error>
|
||||||
where
|
where
|
||||||
P: AsRef<Path>,
|
P: AsRef<Path>,
|
||||||
K: AsRef<str>,
|
K: AsRef<str>,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue