• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java RedisAccessKeys类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.microsoft.azure.management.redis.RedisAccessKeys的典型用法代码示例。如果您正苦于以下问题:Java RedisAccessKeys类的具体用法?Java RedisAccessKeys怎么用?Java RedisAccessKeys使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

RedisAccessKeys类属于com.microsoft.azure.management.redis包,在下文中一共展示了RedisAccessKeys类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: print

点赞 2

import com.microsoft.azure.management.redis.RedisAccessKeys; //导入依赖的package包/类
/**
 * Print Redis Cache access keys.
 *
 * @param redisAccessKeys a keys for Redis Cache
 */
public static void print(RedisAccessKeys redisAccessKeys) {
    StringBuilder redisKeys = new StringBuilder()
            .append("Redis Access Keys: ")
            .append("\n\tPrimary Key: '").append(redisAccessKeys.primaryKey()).append("', ")
            .append("\n\tSecondary Key: '").append(redisAccessKeys.secondaryKey()).append("', ");

    System.out.println(redisKeys.toString());
}
 

开发者ID:Azure-Samples,
项目名称:acr-java-manage-azure-container-registry,
代码行数:14,
代码来源:Utils.java

示例2: keys

点赞 2

import com.microsoft.azure.management.redis.RedisAccessKeys; //导入依赖的package包/类
@Override
public RedisAccessKeys keys() {
    if (cachedAccessKeys == null) {
        cachedAccessKeys = refreshKeys();
    }
    return cachedAccessKeys;
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:8,
代码来源:RedisCacheImpl.java

示例3: refreshKeys

点赞 2

import com.microsoft.azure.management.redis.RedisAccessKeys; //导入依赖的package包/类
@Override
public RedisAccessKeys refreshKeys() {
    RedisAccessKeysInner response =
            this.manager().inner().redis().listKeys(this.resourceGroupName(), this.name());
    cachedAccessKeys = new RedisAccessKeysImpl(response);
    return cachedAccessKeys;
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:8,
代码来源:RedisCacheImpl.java

示例4: regenerateKey

点赞 2

import com.microsoft.azure.management.redis.RedisAccessKeys; //导入依赖的package包/类
@Override
public RedisAccessKeys regenerateKey(RedisKeyType keyType) {
    RedisAccessKeysInner response =
            this.manager().inner().redis().regenerateKey(this.resourceGroupName(), this.name(), keyType);
    cachedAccessKeys = new RedisAccessKeysImpl(response);
    return cachedAccessKeys;
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:8,
代码来源:RedisCacheImpl.java

示例5: getKeys

点赞 2

import com.microsoft.azure.management.redis.RedisAccessKeys; //导入依赖的package包/类
@Override
public RedisAccessKeys getKeys() {
    // TODO: Either this or keys() is redundant, but this was added for parity between Java and .NEt without breaking compat. In V2.0, this needs to be cleaned up.
    return this.refreshKeys();
}
 

开发者ID:Azure,
项目名称:azure-libraries-for-java
代码行数:6,
代码来源:RedisCacheImpl.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)