Examples of del()


Examples of org.jredis.JRedis.del()

            db.lrem(RedisIndexKeys.META_INDICES_AUTO, idxName, 0);

            keyList = db.keys(RedisIndexKeys.MANUAL + idxName + ":*");
            for(String key : keyList){
                    db.del(key);
            }

            keyList = db.keys(RedisIndexKeys.META_MANUAL + idxName + ":*");
            for(String key : keyList){
                    db.del(key);
View Full Code Here

Examples of org.jredis.JRedis.del()

                    db.del(key);
            }

            keyList = db.keys(RedisIndexKeys.META_MANUAL + idxName + ":*");
            for(String key : keyList){
                    db.del(key);
            }

            db.lrem(RedisIndexKeys.META_INDICES_MANUAL, idxName, 0);
        } catch (RedisException e) {
            e.printStackTrace();
View Full Code Here

Examples of org.jredis.JRedisFuture.del()

      JRedisFuture pipeline = new JRedisPipeline(spec);
      try {
        String key = "pipeKey";
        byte[] data = new byte[size];
        (new Random()).nextBytes(data);
      pipeline.del(key);
      pipeline.set(key, data);
     
        do {
          int cnt = 0;
          Util.Timer timer = Timer.startNewTimer();
View Full Code Here

Examples of org.jredis.ri.alphazero.JRedisClient.del()

    @Before
    public void setUp() throws IOException, RedisException {
        Runtime.getRuntime().exec("rm -rf " + indexdir);
        JRedisClient redis = new JRedisClient();
        redis.del("_0_exampletag", "_0_updatedtag");
    }

    @Test
    public void testUpdateCodec() throws IOException {
View Full Code Here

Examples of org.jredis.ri.alphazero.JRedisPipeline.del()

      JRedisFuture pipeline = new JRedisPipeline(spec);
      try {
        String key = "pipeKey";
        byte[] data = new byte[size];
        (new Random()).nextBytes(data);
      pipeline.del(key);
      pipeline.set(key, data);
     
        do {
          int cnt = 0;
          Util.Timer timer = Timer.startNewTimer();
View Full Code Here

Examples of org.openxri.resolve.ResolverCache.del()

  public void testExpire()
  {
    ResolverCache c = new ResolverCache();
    try {
      c.del("@abc", false, false);
      byte[] s = c.get("@abc", false, false);
      assertTrue("stale cache value", s == null);
     
      c.put("@abc", false, false, "x".getBytes("UTF-8"), 2);
      s = c.get("@abc", false, false);
View Full Code Here

Examples of org.openxri.resolve.ResolverCache.del()

 
  public void testConcurrent()
  {
    ResolverCache cache = new ResolverCache();
    cache.setNewCache("testConcurrent", 5);
    cache.del(AuthorityPath.buildAuthorityPath("@").toString(), false, false);
    assertTrue("Initial cache not empty", cache.getSize() == 0);


    XRD xrd = new XRD();
    Service atAuthService = new Service();
View Full Code Here

Examples of org.openxri.resolve.ResolverCache.del()

  public void testExpire()
  {
    ResolverCache c = new ResolverCache();
    try {
      c.del("@abc", false, false);
      byte[] s = c.get("@abc", false, false);
      assertTrue("stale cache value", s == null);
     
      c.put("@abc", false, false, "x".getBytes("UTF-8"), 2);
      s = c.get("@abc", false, false);
View Full Code Here

Examples of org.openxri.resolve.ResolverCache.del()

 
  public void testConcurrent()
  {
    ResolverCache cache = new ResolverCache();
    cache.setNewCache("testConcurrent", 5);
    cache.del(AuthorityPath.buildAuthorityPath("@").toString(), false, false);
    assertTrue("Initial cache not empty", cache.getSize() == 0);


    XRD xrd = new XRD();
    Service atAuthService = new Service();
View Full Code Here

Examples of org.springframework.data.redis.connection.DefaultStringRedisConnection.del()

    StringRedisConnection conn2 = new DefaultStringRedisConnection(factory2.getConnection());
    try {
      assertEquals("bar", conn2.get("foo"));
    } finally {
      if (conn2.exists("foo")) {
        conn2.del("foo");
      }
      conn2.close();
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.