omnipath_cache_get {OmnipathR} | R Documentation

## Retrieves one item from the cache directory

### Description

Retrieves one item from the cache directory

### Usage

    omnipath_cache_get(
      key = NULL,
      url = NULL,
      post = NULL,
      payload = NULL,
      create = TRUE,
      ...
    )

### Arguments

`key` | The key of the cache record
`url` | URL pointing to the resource
`post` | HTTP POST parameters as a list
`payload` | HTTP data payload
`create` | Create a new entry if doesn't exist yet
`...` | Passed to `omnipath_cache_record` (internal function)

### Value

Cache record: an existing record if the entry already exists, otherwise a newly created and inserted record

### Examples

    # create an example cache record
    bioc_url <- 'https://bioconductor.org/'
    version <- omnipath_cache_latest_or_new(url = bioc_url)
    omnipath_cache_remove(url = bioc_url) # cleaning up

    # retrieve the cache record
    record <- omnipath_cache_get(url = bioc_url)
    record$key
    # [1] "41346a00fb20d2a9df03aa70cf4d50bf88ab154a"
    record$url
    # [1] "https://bioconductor.org/"

[Package OmnipathR version 3.0.0 Index]