cache.js 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import request from '@/utils/request'
  2. // 查询缓存详细
  3. export function getCache () {
  4. return request({
  5. url: '/monitor/cache',
  6. method: 'get'
  7. })
  8. }
  9. // 查询缓存名称列表
  10. export function listCacheName () {
  11. return request({
  12. url: '/monitor/cache/listCacheName',
  13. method: 'get'
  14. })
  15. }
  16. // 删除角色
  17. export function clearCache (cacheId) {
  18. return request({
  19. url: '/monitor/cache/clearCache/' + cacheId,
  20. method: 'delete'
  21. })
  22. }
  23. // 查询缓存详细
  24. export function listCacheKey (cacheId) {
  25. return request({
  26. url: '/monitor/cache/listCacheKey/' + cacheId,
  27. method: 'get'
  28. })
  29. }
  30. // 删除角色
  31. export function clearCacheByKey (cacheId, cacheKey) {
  32. return request({
  33. url: '/monitor/cache/clearCacheByKey/' + cacheId + '/' + cacheKey,
  34. method: 'delete'
  35. })
  36. }
  37. // 查询缓存详细
  38. export function getCacheValue (cacheId, cacheKey) {
  39. return request({
  40. url: '/monitor/cache/getCacheValue/' + cacheId + '/' + cacheKey,
  41. method: 'get'
  42. })
  43. }