github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/caches/memcached.md (about)

     1  ---
     2  title: memcached
     3  type: cache
     4  status: stable
     5  ---
     6  
     7  <!--
     8       THIS FILE IS AUTOGENERATED!
     9  
    10       To make changes please edit the contents of:
    11       lib/cache/memcached.go
    12  -->
    13  
    14  import Tabs from '@theme/Tabs';
    15  import TabItem from '@theme/TabItem';
    16  
    17  
    18  Connects to a cluster of memcached services, a prefix can be specified to allow
    19  multiple cache types to share a memcached cluster under different namespaces.
    20  
    21  
    22  <Tabs defaultValue="common" values={[
    23    { label: 'Common', value: 'common', },
    24    { label: 'Advanced', value: 'advanced', },
    25  ]}>
    26  
    27  <TabItem value="common">
    28  
    29  ```yaml
    30  # Common config fields, showing default values
    31  label: ""
    32  memcached:
    33    addresses:
    34      - localhost:11211
    35    prefix: ""
    36    ttl: 300
    37  ```
    38  
    39  </TabItem>
    40  <TabItem value="advanced">
    41  
    42  ```yaml
    43  # All config fields, showing default values
    44  label: ""
    45  memcached:
    46    addresses:
    47      - localhost:11211
    48    prefix: ""
    49    ttl: 300
    50    retries: 3
    51    retry_period: 500ms
    52  ```
    53  
    54  </TabItem>
    55  </Tabs>
    56  
    57  
    58  This cache type supports setting the TTL individually per key by using the
    59  dynamic `ttl` field of a cache processor or output in order to
    60  override the general TTL configured at the cache resource level.
    61  
    62  ## Fields
    63  
    64  ### `addresses`
    65  
    66  A list of addresses of memcached servers to use.
    67  
    68  
    69  Type: `array`  
    70  Default: `["localhost:11211"]`  
    71  
    72  ### `prefix`
    73  
    74  An optional string to prefix item keys with in order to prevent collisions with similar services.
    75  
    76  
    77  Type: `string`  
    78  Default: `""`  
    79  
    80  ### `ttl`
    81  
    82  A TTL in seconds to set for items, after this period keys will be removed.
    83  
    84  
    85  Type: `int`  
    86  Default: `300`  
    87  
    88  ### `retries`
    89  
    90  The maximum number of retry attempts to make before abandoning a request.
    91  
    92  
    93  Type: `int`  
    94  Default: `3`  
    95  
    96  ### `retry_period`
    97  
    98  The duration to wait between retry attempts.
    99  
   100  
   101  Type: `string`  
   102  Default: `"500ms"`  
   103  
   104