Method: Rugged::Settings.used_cache_size

Defined in:
ext/rugged/rugged_settings.c

.Rugged::Settings.used_cache_sizeObject

Returns the amount of memory the cache is currently consuming.


162
163
164
165
166
167
# File 'ext/rugged/rugged_settings.c', line 162

static VALUE rb_git_get_used_cache_size(VALUE mod) {
    size_t val;
    size_t max;
    git_libgit2_opts(GIT_OPT_GET_CACHED_MEMORY, &val, &max);
    return SIZET2NUM(val);
}