HBHttpCacheData.m 657 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // HBHttpCacheData.m
  3. // wq
  4. //
  5. // Created by weqia on 13-8-15.
  6. // Copyright (c) 2013年 Weqia. All rights reserved.
  7. //
  8. #import "HBHttpCacheData.h"
  9. @implementation HBHttpCacheData
  10. @synthesize cacheData,cacheType,cacheUrl;
  11. -(id)init{
  12. self= [super init];
  13. if(self){
  14. self.cacheData=nil;
  15. self.cacheUrl=nil;
  16. NSDate * date=[NSDate date];
  17. self.timestamp=[NSString stringWithFormat:@"%lld",(long long)date.timeIntervalSince1970];
  18. }
  19. return self;
  20. }
  21. +(NSString *)getPrimaryKey
  22. {
  23. return @"cacheUrl";
  24. }
  25. +(NSString *)getTableName
  26. {
  27. return @"HBHttpCacheData";
  28. }
  29. +(int)getTableVersion
  30. {
  31. return 9;
  32. }
  33. @end