以下測試腳本摘自memcached_functions_mysql的源碼目錄
PLAIN TEXTCODE: drop table if exists urls;
create table urls (
id int(
url varchar(
primary key (id)
);
select memc_servers_set(
select memc_set(
DELIMITER |
DROP TRIGGER IF EXISTS url_mem_insert;
CREATE TRIGGER url_mem_insert
BEFORE INSERT ON urls
FOR EACH ROW BEGIN
SET NEW
SET @mm= memc_set(concat(
END |
DELIMITER ;
insert into urls (url) values (
insert into urls (url) values (
insert into urls (url) values (
insert into urls (url) values (
insert into urls (url) values (
select * from urls;
select memc_get(
select memc_get(
select memc_get(
select memc_get(
select memc_get(
[
From:http://tw.wingwit.com/Article/program/MySQL/201311/29587.html