42e4fcaeceaed8da9e9ddcad54e120677194a9e4 braney Wed Jun 12 15:18:57 2019 -0700 add caching expiration on trackDb cache diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h index 4ead4b5..1ee53c6 100644 --- src/hg/inc/trackDb.h +++ src/hg/inc/trackDb.h @@ -697,28 +697,28 @@ * or a tab-separated or tagStorm file with a foreign key specified by the "meta" tag. */ char *trackDbViewSetting(struct trackDb *tdb, char *name); /* Return view setting from tdb, but *not* any of it's parents. */ struct trackDb *lmCloneTdb(struct lm *lm, struct trackDb *tdb, struct trackDb *parent, struct hash *superHash); /* clone a single tdb structure. Will clone its children if it has any */ struct trackDb *lmCloneTdbList(struct lm *lm, struct trackDb *list, struct trackDb *parent, struct hash *superHash); /* clone a list of tdb structures. */ struct trackDb *lmCloneSuper(struct lm *lm, struct trackDb *tdb, struct hash *superHash); /* clone a super track tdb structure. */ -void trackDbHubCloneTdbListToSharedMem(char *hubUrl, char *genome, struct trackDb *list, unsigned long size); +void trackDbHubCloneTdbListToSharedMem(char *trackDbUrl, struct trackDb *list, unsigned long size); /* For this hub, Allocate shared memory and clone trackDb list into it. */ void trackDbCloneTdbListToSharedMem(char *db, struct trackDb *list, unsigned long size); /* For this native db, allocate shared memory and clone trackDb list into it. */ -struct trackDb *trackDbCache(char *db); +struct trackDb *trackDbCache(char *db, time_t time); /* Check to see if this db has a cached trackDb. */ -struct trackDb *trackDbHubCache(char *hubUrl, char *genome); +struct trackDb *trackDbHubCache(char *trackDbUrl, time_t time); /* Check to see if this hub has a cached trackDb. */ #endif /* TRACKDB_H */