Cache content to NSUserDefaults

Signed-off-by: Wu Xudong <tikiet@gmail.com>