Package redis.seek

Examples of redis.seek.Seek.info()


    public void info() {
        addEntry("MLA98251174", 1287278019);
        addEntry("MLA98251175", 1287278020);
        addEntry("MLA98251176", 1287278021);
        Seek seek = new Seek();
        Info<String, Info<String, Long>> info = seek.info("84689862");

        assertEquals(3, info.total());
        assertNotNull(info.get("category_id"));
        assertEquals(1, info.get("category_id").size());
        assertEquals(3, info.get("category_id").total());
View Full Code Here


        assertEquals(3, info.get("category_id").get("MLA31594").longValue());
        assertEquals(3, info.get("tags").get("buy_it_now").longValue());

        seek.remove("MLA98251176", "84689862");

        info = seek.info("84689862");

        assertEquals(2, info.total());
        assertNotNull(info.get("category_id"));
        assertEquals(1, info.get("category_id").size());
        assertEquals(2, info.get("category_id").total());
View Full Code Here

    public void clearInfo() {
        addEntry("MLA98251174", 1287278019);
        addEntry("MLA98251175", 1287278020);
        addEntry("MLA98251176", 1287278021);
        Seek seek = new Seek();
        Info<String, Info<String, Long>> info = seek.info("84689862");

        assertEquals(3, info.total());
        assertNotNull(info.get("category_id"));
        assertEquals(1, info.get("category_id").size());
        assertEquals(3, info.get("category_id").total());
View Full Code Here

        assertEquals(3, info.get("category_id").get("MLA31594").longValue());
        assertEquals(3, info.get("tags").get("buy_it_now").longValue());

        seek.clearInfo("84689862");

        info = seek.info("84689862");

        assertEquals(0, info.total());
        assertNull(info.get("category_id"));
        assertEquals(0, info.size());
    }
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.