INSERT INTO cache_policies VALUES('cache_policy', 'innodb_only',
'innodb_only', 'innodb_only',
'innodb_only');
INSERT INTO config_options VALUES('separator', '|');
INSERT INTO containers VALUES ('desc_t1', 'test', 't1',
'c1', 'c2', '0', '0', '0', 'PRIMARY');
USE test;
CREATE TABLE t1(c1 VARCHAR(32),
c2 BLOB,
primary key(c1))
ENGINE = INNODB;
INSERT INTO t1 VALUES ('A', repeat('a',8000));
INSERT INTO t1 VALUES ('B', 'Berlin');
INSERT INTO t1 VALUES ('C', 'Cottbus');
INSERT INTO t1 VALUES ('D', 'Darmstadt');
INSERT INTO t1 VALUES ('H', 'Hamburg');
INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so';
SELECT @@innodb_api_trx_level;
@@innodb_api_trx_level
1
SELECT @@innodb_api_bk_commit_interval;
@@innodb_api_bk_commit_interval
1000
SELECT @@daemon_memcached_r_batch_size;
@@daemon_memcached_r_batch_size
10000
SELECT @@daemon_memcached_w_batch_size;
@@daemon_memcached_w_batch_size
10000
Opening new connection and doing GET
We *shouldn't* see Animal names now
Here the memcached results with A,B,C,D,E,H
[encoded data, 8000 characters]
Berlin
Cottbus
Darmstadt
Couldn't get value for E
Hamburg
W|[encoded data, 9907 characters]
We *shouldn't* see Animal names now
Here the memcached results with A,B,C,D,E,H
Ant
Buffalo
Cat
Dog
Elephant
Hen
W|[encoded data, 9907 characters]
Connection is closed and transaction is committed
We *should* see Animal Names now
Here the memcached results with A,B,C,D,E,H
Ant
Buffalo
Cat
Dog
Elephant
Hen
W|[encoded data, 9907 characters]
SELECT * FROM t1;
c1	c2
A	Ant
B	Buffalo
C	Cat
D	Dog
E	Elephant
H	Hen
W	W|[encoded data, 9907 characters]
DROP TABLE t1;
UNINSTALL PLUGIN daemon_memcached;
DROP DATABASE innodb_memcache;
