mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-18 16:31:26 -07:00
Type options of cache plugins (#8624)
* Type options of cache plugins. * Do not change type of _timeout for now.
This commit is contained in:
parent
1a8f172186
commit
37c8560542
5 changed files with 17 additions and 2 deletions
4
plugins/cache/memcached.py
vendored
4
plugins/cache/memcached.py
vendored
|
@ -29,6 +29,7 @@ DOCUMENTATION = '''
|
|||
section: defaults
|
||||
_prefix:
|
||||
description: User defined prefix to use when creating the DB entries
|
||||
type: string
|
||||
default: ansible_facts
|
||||
env:
|
||||
- name: ANSIBLE_CACHE_PLUGIN_PREFIX
|
||||
|
@ -37,13 +38,14 @@ DOCUMENTATION = '''
|
|||
section: defaults
|
||||
_timeout:
|
||||
default: 86400
|
||||
type: integer
|
||||
# TODO: determine whether it is OK to change to: type: float
|
||||
description: Expiration timeout in seconds for the cache plugin data. Set to 0 to never expire
|
||||
env:
|
||||
- name: ANSIBLE_CACHE_PLUGIN_TIMEOUT
|
||||
ini:
|
||||
- key: fact_caching_timeout
|
||||
section: defaults
|
||||
type: integer
|
||||
'''
|
||||
|
||||
import collections
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue