当前位置: 首页>>代码示例>>Python>>正文


Python AttrDict.redis_payment_store方法代码示例

本文整理汇总了Python中attrdict.AttrDict.redis_payment_store方法的典型用法代码示例。如果您正苦于以下问题:Python AttrDict.redis_payment_store方法的具体用法?Python AttrDict.redis_payment_store怎么用?Python AttrDict.redis_payment_store使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在attrdict.AttrDict的用法示例。


在下文中一共展示了AttrDict.redis_payment_store方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1:

# 需要导入模块: from attrdict import AttrDict [as 别名]
# 或者: from attrdict.AttrDict import redis_payment_store [as 别名]
config.plugin_directories = [
    'logger',
    'resolvers',
    'signer'
]

redis_uri = 'redis://localhost:6379'
if 'ADDRESSIMO_REDIS_URI' in os.environ:
    redis_uri = os.environ['ADDRESSIMO_REDIS_URI']

# Redis Setup
config.redis_id_obj_uri = '%s/1' % redis_uri
config.redis_tx_map_uri = '%s/2' % redis_uri
config.redis_tx_uri = '%s/3' % redis_uri
config.redis_pr_store = '%s/3' % redis_uri
config.redis_payment_store = '%s/4' % redis_uri
config.redis_logdb_uri = '%s/6' % redis_uri
config.redis_address_branch_uri = '%s/13' % redis_uri
config.redis_addr_cache_uri = '%s/14' % redis_uri
config.redis_ratelimit_uri = '%s/15' % redis_uri

# Object Configuration
config.resolver_type = 'REDIS'
config.signer_type = 'LOCAL'

# Logging Plugin Setup
config.logger_type = 'LOCAL'
config.logger_api_endpoint = 'https://auditor.mydomain.com/log'

# Bitcoin Setup
config.bitcoin_user = 'bitcoinrpc'
开发者ID:netkicorp,项目名称:addressimo,代码行数:33,代码来源:config.py

示例2:

# 需要导入模块: from attrdict import AttrDict [as 别名]
# 或者: from attrdict.AttrDict import redis_payment_store [as 别名]
config.presigned_pr_limit = 100

# Path Configuration
config.home_dir = '/Users/frank/PycharmProjects/addressimo/addressimo'
config.plugin_directories = [
    'logger',
    'resolvers',
    'signer'
]

# Redis Setup
config.redis_id_obj_uri = 'redis://localhost:6379/1'
config.redis_tx_map_uri = 'redis://localhost:6379/2'
config.redis_tx_uri = 'redis://localhost:6379/3'
config.redis_pr_store = 'redis://localhost:6379/3'
config.redis_payment_store = 'redis://localhost:6379/4'
config.redis_logdb_uri = 'redis://localhost:6379/6'
config.redis_address_branch_uri = 'redis://localhost:6379/13'
config.redis_addr_cache_uri = 'redis://localhost:6379/14'
config.redis_ratelimit_uri = 'redis://localhost:6379/15'

# Object Configuration
config.resolver_type = 'REDIS'
config.signer_type = 'LOCAL'

# Logging Plugin Setup
config.logger_type = 'LOCAL'
config.logger_api_endpoint = 'https://auditor.mydomain.com/log'

# Bitcoin Setup
config.bitcoin_user = 'bitcoinrpc'
开发者ID:samuraisam,项目名称:addressimo,代码行数:33,代码来源:config.py


注:本文中的attrdict.AttrDict.redis_payment_store方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。