congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
RedisClientFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
RedisClientFactory
in
org.hibernate.cache.redis.client

Best Java code snippets using org.hibernate.cache.redis.client.RedisClientFactory (Showing top 20 results out of 315)

origin: debop/hibernate-redis

public RedisClient createRedisClient(Config config) {
 return RedisClientFactory.createRedisClient(config);
}
origin: debop/hibernate-redis

public RedisClient createRedisClient(Config config) {
 return RedisClientFactory.createRedisClient(config);
}
origin: debop/hibernate-redis

public RedisClient createRedisClient(Config config) {
 return RedisClientFactory.createRedisClient(config);
}
origin: debop/hibernate-redis

public RedisClient createRedisClient(Config config) {
 return RedisClientFactory.createRedisClient(config);
}
origin: debop/hibernate-redis

public RedisClient createRedisClient(Config config) {
 return RedisClientFactory.createRedisClient(config);
}
origin: debop/hibernate-redis

public RedisClient createRedisClient(Config config) {
 return RedisClientFactory.createRedisClient(config);
}
origin: debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: com.github.debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: com.github.debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: debop/hibernate-redis

 @SneakyThrows
 public static RedisClient createRedisClient(@NonNull final String redissonYamlPath) {
  log.trace("load redisson config yaml file. path={}", redissonYamlPath);

  String path = null;
  URL url = null;

  if (redissonYamlPath.startsWith("classpath:")) {
   path = redissonYamlPath.substring("classpath:".length());
   url = Thread.currentThread().getContextClassLoader().getResource(path);

   log.trace("load redisson yaml. path={}, url={}", path, url);
   return createRedisClient(url);
  }

  path = redissonYamlPath;
  if (redissonYamlPath.startsWith("file:")) {
   path = path.substring("file:".length());
  }
  url = new File(path).toURI().toURL();
  log.trace("load redisson yaml. path={}, url={}", path, url);
  return createRedisClient(url);

 }
}
origin: debop/hibernate-redis

/**
 * Create {@link RedisClient} instance by properties
 *
 * @param redissonYamlUrl redisson yaml setting file URL
 * @return {@link RedisClient} instance
 */
public static RedisClient createRedisClient(@NonNull final URL redissonYamlUrl) {
 try {
  Config config = Config.fromYAML(redissonYamlUrl);
  return createRedisClient(config);
 } catch (IOException e) {
  log.error("Error in create RedisClient. redissonYamlUrl={}", redissonYamlUrl, e);
  throw new RuntimeException(e);
 }
}
origin: com.github.debop/hibernate-redis

public RedisClient createRedisClient() {
 return RedisClientFactory.createRedisClient(RedisCacheUtil.getRedissonConfigPath());
}
origin: com.github.debop/hibernate-redis

 @SneakyThrows
 public static RedisClient createRedisClient(@NonNull final String redissonYamlPath) {
  log.trace("load redisson config yaml file. path={}", redissonYamlPath);

  String path = null;
  URL url = null;

  if (redissonYamlPath.startsWith("classpath:")) {
   path = redissonYamlPath.substring("classpath:".length());
   url = Thread.currentThread().getContextClassLoader().getResource(path);

   log.trace("load redisson yaml. path={}, url={}", path, url);
   return createRedisClient(url);
  }

  path = redissonYamlPath;
  if (redissonYamlPath.startsWith("file:")) {
   path = path.substring("file:".length());
  }
  url = new File(path).toURI().toURL();
  log.trace("load redisson yaml. path={}, url={}", path, url);
  return createRedisClient(url);

 }
}
origin: com.github.debop/hibernate-redis

/**
 * Create {@link RedisClient} instance by properties
 *
 * @param redissonYamlUrl redisson yaml setting file URL
 * @return {@link RedisClient} instance
 */
public static RedisClient createRedisClient(@NonNull final URL redissonYamlUrl) {
 try {
  Config config = Config.fromYAML(redissonYamlUrl);
  return createRedisClient(config);
 } catch (IOException e) {
  log.error("Error in create RedisClient. redissonYamlUrl={}", redissonYamlUrl, e);
  throw new RuntimeException(e);
 }
}
origin: debop/hibernate-redis

/**
 * Create {@link RedisClient} instance by properties
 *
 * @param redissonYamlUrl redisson yaml setting file URL
 * @return {@link RedisClient} instance
 */
public static RedisClient createRedisClient(@NonNull final URL redissonYamlUrl) {
 try {
  Config config = Config.fromYAML(redissonYamlUrl);
  return createRedisClient(config);
 } catch (IOException e) {
  log.error("Error in create RedisClient. redissonYamlUrl={}", redissonYamlUrl, e);
  throw new RuntimeException(e);
 }
}
org.hibernate.cache.redis.clientRedisClientFactory

Javadoc

Factory class for RedisClient.

Most used methods

  • createRedisClient

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now