shared-expiry-get
is a wrapper for accessing and caching a remote data source with some
expiration criteria.
shared-expiry-get
does not:
```rust use failure::Error; use futures::future; use futures::future::IntoFuture; use futures::Future;
use sharedexpiryget::Expiry; use sharedexpiryget::Provider; use sharedexpiryget::RemoteStore;
struct MyProvider {}
struct Payload {}
impl Expiry for Payload { fn valid(&self) -> bool { true } }
impl Provider
fn main() { let rs = RemoteStore::new(MyProvider {}); let payload = rs.get().wait(); assert!(payload.is_ok()); } ```