6 Commits (89aa01c266390680c0542cdeee4e8290c4e4b593)

Author SHA1 Message Date
anna 89aa01c266
util: refactor crypto API 1 year ago
anna 888caba1d1
data: return Arc<T> from MemCache 1 year ago
anna a0d2dc4151
refactor model IDs to use safe types
This is a major refactor that introduces a new
generic type Id<T, I> for tagging any ID with the
model they reference without any runtime overhead.
From now on, it should be pretty much impossible
to pass e.g. a note ID to a function that expects,
say, an account ID.

Furthermore, the follow and like tables have been
simplified to use the two IDs that define the
relationship as a composite primary key.

Finally, likes now have a memory cache.
1 year ago
anna 7845fb3680
data: refactor memcache 1 year ago
anna af08336532
memcache: generalize indexing
This should also improve performance a little
because entries are now behind an Arc, so the
lock has to be held for shorter time periods.
1 year ago
anna 8ea3ebda54
data: add in-memory cache 1 year ago