trying to port web app starter from PHP
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
RENDER(Request& context)
|
||||
{
|
||||
DTree t;
|
||||
|
||||
<>
|
||||
<link rel="stylesheet" href='style.css'></link>
|
||||
<h1>
|
||||
<a href="index.uce">UCE Test</a>:
|
||||
MemcacheD
|
||||
</h1>
|
||||
|
||||
Stats:
|
||||
|
||||
<pre><?
|
||||
|
||||
auto sfd = memcache_connect();
|
||||
|
||||
print(memcache_command(sfd, "stats"));
|
||||
|
||||
?></pre>
|
||||
|
||||
Set/Get:
|
||||
|
||||
<pre><?
|
||||
|
||||
memcache_set(sfd, "test_key", "test_value");
|
||||
memcache_set(sfd, "test_key2", "test_value2");
|
||||
print("raw:: "+memcache_command(sfd, "get test_key")+"\n");
|
||||
print("get:: "+memcache_get(sfd, "test_key")+"\n");
|
||||
print("multiple::\n"+var_dump(memcache_get_multiple(sfd, {"test_key", "test_key2"}))+"\n");
|
||||
|
||||
?></pre>
|
||||
|
||||
Params
|
||||
<pre><?= var_dump(context.params) ?></pre>
|
||||
</>
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user