Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyuchun authored Jun 1, 2018
1 parent 4c029b9 commit 0ee8490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ class Grade
auto cache = UCache.CreateUCache();
//string
cache.put!string("test" , "test");
string val = cache.get!string("test");
cache.put("test" , "test");
string val = cache.get("test");
//student.
Student stu1;
stu1.ID = 1;
stu1.name = "tom";
stu1.address = "Tianlin Road 1016";
cache.put!Student("tom" , stu1);
cache.put("tom" , stu1);
auto stu = cache.get!Student("tom");
//Grade
Grade grade = new Grade();
grade.gradeLevel = 12;
grade.gradeName = "13";
grade.arrStu ~= stu1;
cache.put!Grade("13" , grade);
cache.put("13" , grade);
auto grade1 = cache.get!Grade("13");
````

0 comments on commit 0ee8490

Please sign in to comment.