Examples of TooLongKeyChecker


Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.get("test test2");
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.append("test test2", 0, 1);
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < keyLength; i++) {
          sb.append(i);
        }
        memcachedClient.append(sb.toString(), 0, 1);
      }
    }.check();

    // prepend test
    // blank key
    new BlankKeyChecker() {
      @Override
      public void call() throws Exception {
        memcachedClient.prepend("", 0, 1);
      }
    }.check();
    // null key
    new BlankKeyChecker() {
      @Override
      public void call() throws Exception {
        memcachedClient.prepend((String) null, 0, 1);
      }
    }.check();

    // invalid key
    new InValidKeyChecker() {
      @Override
      public void call() throws Exception {
        memcachedClient.prepend("test\r\n", 0, 1);
      }
    }.check();
    new InValidKeyChecker() {
      @Override
      public void call() throws Exception {
        memcachedClient.prepend("test test2", 0, 1);
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.set("test test2", 0, 1);
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.replace("test test2", 0, 1);
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.add("test test2", 0, 1);
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.gets("test test2");
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.incr("test test2", 0, 1);
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.decr("test test2", 0, 1);
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.cas("test test2", operation);
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of net.rubyeye.xmemcached.helper.TooLongKeyChecker

        memcachedClient.get("test test2");
      }
    }.check();

    // key is too long
    new TooLongKeyChecker(memcachedClient) {
      @Override
      public void call() throws Exception {
        int keyLength = memcachedClient.getProtocol() == Protocol.Text ? 256
            : 65536;
        StringBuilder sb = new StringBuilder();
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.