public class PropertyResourceRedisService extends Object
| 构造器和说明 |
|---|
PropertyResourceRedisService(cn.ipokerface.redis.JedisClient jedisClient,
PropertyResourceProperties propertyResourceProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,PropertyResource> |
getProperties()
find all properties.
|
Map<String,PropertyResource> |
getProperties(String... codes)
find multi properties of codes...
|
PropertyResource |
getProperty(String code)
get a property config from redis.
|
void |
setProperties(List<PropertyResource> properties)
update all properties provided. if properties is empty this method will return immediately.
|
public PropertyResourceRedisService(cn.ipokerface.redis.JedisClient jedisClient,
PropertyResourceProperties propertyResourceProperties)
public void setProperties(List<PropertyResource> properties)
properties - properties to updatepublic PropertyResource getProperty(String code)
code - code of this propertypublic Map<String,PropertyResource> getProperties()
public Map<String,PropertyResource> getProperties(String... codes)
codes - codes to findCopyright © 2021. All rights reserved.