pub fn new(key_space: &str) -> Result<Self> {
        let now = Instant::now();
        Ok(Self {
            client: rust_actions_cache_api::Cache::new("jix/sccache")?,
            key_space: key_space.into(),
            key_space_hash: Digest::reader_sync(
                &mut format!("{}sccache gha v1", key_space).as_bytes(),
            )
            .unwrap(),
            get_backoff_until: RwLock::new(now),
            put_backoff_until: RwLock::new(now),
        })
    }
/// Creates a new `GitHubActionsCache` implicitly configured using the environment provided by
/// GitHub Actions' runner.
Creates a new `GitHubActionsCache` implicitly configured using the environment provided by
GitHub Actions' runner.
Creates a new ` GitHubActionsCache ` implicitly configured using the environment provided by GitHub Actions ' runner .
pub fn new(key_space: &str) -> Result<Self> {
        let now = Instant::now();
        Ok(Self {
            client: rust_actions_cache_api::Cache::new("jix/sccache")?,
            key_space: key_space.into(),
            key_space_hash: Digest::reader_sync(
                &mut format!("{}sccache gha v1", key_space).as_bytes(),
            )
            .unwrap(),
            get_backoff_until: RwLock::new(now),
            put_backoff_until: RwLock::new(now),
        })
    }
pub fn new ( key_space : & str ) -> Result < Self > { let now = Instant :: now ( ) ; Ok ( Self { client : rust_actions_cache_api :: Cache :: new ( " " ) ? , key_space : key_space . into ( ) , key_space_hash : Digest :: reader_sync ( & mut format ! ( " " key_space ) . as_bytes ( ) , ) . unwrap ( ) , get_backoff_until : RwLock :: new ( now ) , put_backoff_until : RwLock :: new ( now ) , } ) }
Creates a new `GitHubActionsCache` implicitly configured using the environment provided by
GitHub Actions' runner.
Creates a new ` GitHubActionsCache ` implicitly configured using the environment provided by GitHub Actions ' runner .
key_space
&str